Check before sourcing, no longer need to remove

pull/97/head
Miles Whittaker 10 years ago
parent 77592825f0
commit 990fa00660

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

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

Loading…
Cancel
Save