dotfiles

$HOME is where the <3 is
git clone git://git.alexkarle.com/dotfiles.git
Log | Files | Refs | Submodules | README

commit 441d4ebdb173b74d8b03c93ecf8cbe5a23ede13b (patch)
parent 3480d37d508645df5996e608fe79b19d93302eb7
Author: Alexander Karle <akarle@umass.edu>
Date:   Tue, 15 May 2018 22:57:43 -0400

Guarding against sourcing non-existant file in zshrc

Diffstat:
Mzsh/zshrc | 7++++---
1 file changed, 4 insertions(+), 3 deletions(-)

diff --git 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?