From 990fa00660ac6f5d76538052bade60501e0b874b Mon Sep 17 00:00:00 2001 From: Miles Whittaker Date: Thu, 18 Sep 2014 00:01:39 -0400 Subject: [PATCH] Check before sourcing, no longer need to remove --- install | 2 +- uninstall | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/install b/install index a925e4d..67fda00 100755 --- a/install +++ b/install @@ -353,7 +353,7 @@ append_line() { echo for shell in bash zsh; do - append_line "source ~/.fzf.${shell}" ~/.${shell}rc "~/.fzf.${shell}" + append_line "[ -f ~/.fzf.${shell} ] && source ~/.fzf.${shell}" ~/.${shell}rc "~/.fzf.${shell}" done if [ $key_bindings -eq 0 -a $has_fish -eq 1 ]; then diff --git a/uninstall b/uninstall index d5fab9a..3cb3afe 100755 --- a/uninstall +++ b/uninstall @@ -50,7 +50,7 @@ remove_line() { for shell in bash zsh; do remove ~/.fzf.${shell} - remove_line "source ~/.fzf.${shell}" ~/.${shell}rc + # remove_line "source ~/.fzf.${shell}" ~/.${shell}rc done bind_file=~/.config/fish/functions/fish_user_key_bindings.fish