🐛 fix(fish): check if fzf.fish function is available
This commit is contained in:
parent
cd49ee5c4d
commit
8ae3aa932a
1 changed files with 6 additions and 1 deletions
|
@ -5,8 +5,13 @@ function fish_user_key_bindings
|
||||||
bind -M visual -m default y 'fish_clipboard_copy; commandline -f end-selection repaint-mode'
|
bind -M visual -m default y 'fish_clipboard_copy; commandline -f end-selection repaint-mode'
|
||||||
bind yy fish_clipboard_copy
|
bind yy fish_clipboard_copy
|
||||||
bind p fish_clipboard_paste
|
bind p fish_clipboard_paste
|
||||||
|
for dir in ~/.config/fish/functions
|
||||||
|
if test -f "$dir/fzf_configure_bindings.fish"
|
||||||
fzf_configure_bindings --directory=\e\cf --history=\ch --variables=\e\cv
|
fzf_configure_bindings --directory=\e\cf --history=\ch --variables=\e\cv
|
||||||
|
break
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
|
||||||
bind \e\cw rga-fzf
|
bind \e\cw rga-fzf
|
||||||
bind \e\z cdzi
|
bind \e\z cdzi
|
||||||
|
|
Loading…
Add table
Reference in a new issue