mirror of
https://github.com/Llewellynvdm/fzf.git
synced 2024-11-25 22:27:41 +00:00
Update fish function
This commit is contained in:
parent
f9f9b671c5
commit
53bce0581e
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
|
||||||
|
Loading…
Reference in New Issue
Block a user