diff options
| author | Miles Whittaker <mjwhitta@gmail.com> | 2014-09-18 00:01:39 -0400 |
|---|---|---|
| committer | Miles Whittaker <mjwhitta@gmail.com> | 2014-09-18 00:01:39 -0400 |
| commit | 990fa00660ac6f5d76538052bade60501e0b874b (patch) | |
| tree | a125e15d1aaf190b424665a5ae943db34fd151b8 | |
| parent | 77592825f072c2adfa65dab972ff87c673ee4425 (diff) | |
| download | fzf-990fa00660ac6f5d76538052bade60501e0b874b.tar.gz | |
Check before sourcing, no longer need to remove
| -rwxr-xr-x | install | 2 | ||||
| -rwxr-xr-x | uninstall | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -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 |
