mirror of
https://github.com/junegunn/fzf.git
synced 2025-11-17 07:43:39 -05:00
Update fish function
This commit is contained in:
8
install
8
install
@@ -303,11 +303,19 @@ if [ -n "$(which fish)" ]; then
|
|||||||
has_fish=1
|
has_fish=1
|
||||||
echo -n "Generate ~/.config/fish/functions/fzf.fish ... "
|
echo -n "Generate ~/.config/fish/functions/fzf.fish ... "
|
||||||
mkdir -p ~/.config/fish/functions
|
mkdir -p ~/.config/fish/functions
|
||||||
|
if [ $downloaded -eq 0 ]; then
|
||||||
cat > ~/.config/fish/functions/fzf.fish << EOFZF
|
cat > ~/.config/fish/functions/fzf.fish << EOFZF
|
||||||
function fzf
|
function fzf
|
||||||
$fzf_cmd \$argv
|
$fzf_cmd \$argv
|
||||||
end
|
end
|
||||||
EOFZF
|
EOFZF
|
||||||
|
else
|
||||||
|
cat > ~/.config/fish/functions/fzf.fish << EOFZF
|
||||||
|
function fzf
|
||||||
|
$fzf_base/bin/fzf \$argv
|
||||||
|
end
|
||||||
|
EOFZF
|
||||||
|
fi
|
||||||
echo "OK"
|
echo "OK"
|
||||||
|
|
||||||
if [ $key_bindings -eq 0 ]; then
|
if [ $key_bindings -eq 0 ]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user