From 53bce0581edeac68b49af7608cfc080d52ab5cc3 Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Sun, 4 Jan 2015 14:35:13 +0900 Subject: [PATCH] Update fish function --- install | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/install b/install index 8ea1435..3a708a1 100755 --- a/install +++ b/install @@ -303,11 +303,19 @@ if [ -n "$(which fish)" ]; then has_fish=1 echo -n "Generate ~/.config/fish/functions/fzf.fish ... " mkdir -p ~/.config/fish/functions - cat > ~/.config/fish/functions/fzf.fish << EOFZF + if [ $downloaded -eq 0 ]; then + cat > ~/.config/fish/functions/fzf.fish << EOFZF function fzf $fzf_cmd \$argv end EOFZF + else + cat > ~/.config/fish/functions/fzf.fish << EOFZF +function fzf + $fzf_base/bin/fzf \$argv +end +EOFZF + fi echo "OK" if [ $key_bindings -eq 0 ]; then