summaryrefslogtreecommitdiffstats
path: root/install
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2015-01-04 14:35:13 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2015-01-04 14:35:13 +0900
commit53bce0581edeac68b49af7608cfc080d52ab5cc3 (patch)
tree6345b5f3ec135be0526225f0d9041163c1d8e3dc /install
parentf9f9b671c5dda3a88b515e9a5e9f9cbf292b849b (diff)
Update fish function
Diffstat (limited to 'install')
-rwxr-xr-xinstall10
1 files changed, 9 insertions, 1 deletions
diff --git a/install b/install
index 8ea14359..3a708a14 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