Check before sourcing, no longer need to remove

This commit is contained in:
Miles Whittaker 2014-09-18 00:01:39 -04:00
parent 77592825f0
commit 990fa00660
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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