Update fish function

This commit is contained in:
Junegunn Choi 2015-01-04 14:35:13 +09:00
parent f9f9b671c5
commit 53bce0581e

View File

@ -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
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