From b6b09916d891ffadc39977e7820f6bad429d2cbd Mon Sep 17 00:00:00 2001 From: JP Appel Date: Mon, 29 Jan 2024 19:48:00 -0500 Subject: feat: made sources depend on file existing --- zsh/zshrc | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/zsh/zshrc b/zsh/zshrc index 9772843..8afb443 100644 --- a/zsh/zshrc +++ b/zsh/zshrc @@ -1,11 +1,11 @@ # The following lines were added by compinstall -zstyle ':completion:*' completer _complete _ignored _approximate +zstyle ':completion:*' completer _complete _expand_alias _ignored _approximate zstyle ':completion:*' matcher-list '' 'm:{[:lower:]}={[:upper:]} m:{[:lower:][:upper:]}={[:upper:][:lower:]}' 'r:|[._-]=* r:|=*' zstyle ':completion:*' max-errors 3 zstyle ':completion:*' prompt '%e' zstyle ':completion:*' squeeze-slashes true -zstyle :compinstall filename '/home/goose/.zshrc' +zstyle :compinstall filename "$HOME/.zshrc" zstyle ':completion:*' list-colors '' zstyle ':completion:*' list-prompt %SAt %p: Hit TAB for more, or the character to insert%s @@ -32,10 +32,12 @@ setopt PROMPT_SUBST PROMPT='%F{green}%n%f%F{cyan}@%f%F{blue}%m%#%f%F{magenta}%~>%f' RPROMPT='%B${vim_mode}%b%(?..[%?])' +# setopt completealiases -source ~/.profile -source ~/.config/zsh/zshenv -source ~/.config/zsh/zshalias +[ -f "$HOME/.profile" ] && . "$HOME/.profile" +[ -f "$HOME/.config/zsh/zshenv" ] . "$HOME/.config/zsh/zshenv" +[ -f "$HOME/.config/zsh/zshalias" ] . "$HOME/.config/zsh/zshalias" +[ -f "$HOME/.config/zsh/zshcomp"] . "$HOME/.config/zsh/zshcomp" #wal colorscheme [ -f "$HOME/.cache/wal/colors-tty.sh" ] && source ~/.cache/wal/colors-tty.sh ; true -- cgit v1.2.3