From 0f75cd181647000e0a432dacd510abb26840b1b0 Mon Sep 17 00:00:00 2001 From: lelgenio Date: Thu, 14 Apr 2022 09:54:11 -0300 Subject: [PATCH] fish: fix loading fzf key binds --- dotfiles/fish/keys.fish | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/dotfiles/fish/keys.fish b/dotfiles/fish/keys.fish index d28146e..0962f53 100644 --- a/dotfiles/fish/keys.fish +++ b/dotfiles/fish/keys.fish @@ -34,13 +34,14 @@ end bind \cy 'commandline | wl-copy -n' # Enable fzf key bindings -if test -f /usr/share/fzf/key-bindings.fish - source /usr/share/fzf/key-bindings.fish +if type -q fzf_key_bindings fzf_key_bindings +else if test -f /usr/share/fzf/key-bindings.fish + source /usr/share/fzf/key-bindings.fish end -function rcd #{{{ +function rcd set file (mktemp) ranger --choosedir=$file