summaryrefslogtreecommitdiffstats
path: root/install
diff options
context:
space:
mode:
authorMiles Whittaker <mjwhitta@gmail.com>2014-09-18 00:01:39 -0400
committerMiles Whittaker <mjwhitta@gmail.com>2014-09-18 00:01:39 -0400
commit990fa00660ac6f5d76538052bade60501e0b874b (patch)
treea125e15d1aaf190b424665a5ae943db34fd151b8 /install
parent77592825f072c2adfa65dab972ff87c673ee4425 (diff)
Check before sourcing, no longer need to remove
Diffstat (limited to 'install')
-rwxr-xr-xinstall2
1 files changed, 1 insertions, 1 deletions
diff --git a/install b/install
index a925e4d2..67fda009 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