setopt extendedglob nomatch notify histnofunctions histnostore histverify incappendhistory autopushd pushdignoredups unsetopt beep if [[ -f /nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh ]]; then . /nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh fi bindkey -v # allow ctrl-a and ctrl-e to move to beginning/end of line bindkey '^a' beginning-of-line bindkey '^e' end-of-line if [[ $(uname) == 'Darwin' ]]; then if [[ $(arch) == 'arm64' ]]; then path+=('/opt/homebrew/bin') else path+=('/usr/local/bin') fi fi fpath=(~/bin ~/.zshcompletions $fpath) zstyle :compinstall filename '/home/anthonys/.zshrc' zstyle ":completion:*" complete _complete _ignored _approximate _expand zstyle ":completion:*" glob 1 zstyle ":completion:*" insert-unambiguous true zstyle ':completion:*' menu select zstyle ':completion:*' rehash true zstyle ':completion:*' matcher-list 'r:|[._-]=* r:|=*' 'm:{[:lower:][:upper:]}={[:upper:][:lower:]}' 'l:|=* r:|=*' zstyle ":completion:*" substitute 1 [[ -n "$key[Up]" ]] && bindkey -- "$key[Up]" up-line-or-beginning-search [[ -n "$key[Down]" ]] && bindkey -- "$key[Down]" down-line-or-beginning-search path=("$HOME/bin" "$HOME/go/bin" $path) if [[ -d ~/.cargo/bin ]]; then path=($path $HOME/.cargo/bin) fi function dt() { zellij -l welcome } function root() { if [[ -n $(git rev-parse --show-toplevel) ]] then cd "$(git rev-parse --show-toplevel)" fi } if [[ -a $HOME/.zshsrc ]]; then source $HOME/.zshsrc else printf "No zshsrc\nOne has been created\n" touch $HOME/.zshsrc fi alias exa="eza -l --git" for funcfile in $HOME/.zsh.d/* ; do source "${funcfile}" done