diff options
author | Junegunn Choi <junegunn.c@gmail.com> | 2015-01-04 14:35:13 +0900 |
---|---|---|
committer | Junegunn Choi <junegunn.c@gmail.com> | 2015-01-04 14:35:13 +0900 |
commit | 53bce0581edeac68b49af7608cfc080d52ab5cc3 (patch) | |
tree | 6345b5f3ec135be0526225f0d9041163c1d8e3dc /install | |
parent | f9f9b671c5dda3a88b515e9a5e9f9cbf292b849b (diff) |
Update fish function
Diffstat (limited to 'install')
-rwxr-xr-x | install | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -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 |