From 441d4ebdb173b74d8b03c93ecf8cbe5a23ede13b Mon Sep 17 00:00:00 2001 From: Alexander Karle Date: Tue, 15 May 2018 22:57:43 -0400 Subject: [PATCH] Guarding against sourcing non-existant file in zshrc --- zsh/zshrc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/zsh/zshrc b/zsh/zshrc index c3f9b85..ecb7b9c 100644 --- a/zsh/zshrc +++ b/zsh/zshrc @@ -31,15 +31,16 @@ bindkey '^?' backward-delete-char bindkey '^r' history-incremental-search-backward # Indicate vi mode! -source ~/.akarledots/zsh/vi_prompt_append.zsh +local VI_PROMPT_APPEND_FILE=~/.akarledots/zsh/vi_prompt_append.zsh +if [[ -f "$VI_PROMPT_APPEND_FILE" ]]; then + source "$VI_PROMPT_APPEND_FILE" +fi # alias for homebrew versions of things # alias ctags='/usr/local/Cellar/ctags/5.8_1/bin/ctags' # alias python python2 # other alias' -# alias pgp='open -a "PariGP"' -# alias vim='nvim' alias dps="docker ps -a" # ITALICS UPDATE: may break ssh? -- libgit2 0.28.4