From 9b5625df281a837674881868ca468da26d6f0e5e Mon Sep 17 00:00:00 2001 From: Charles Gould Date: Tue, 9 Jun 2020 01:15:00 +0000 Subject: [PATCH] fish: load fzf bindings under nix --- fish/functions/fish_user_key_bindings.fish | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/fish/functions/fish_user_key_bindings.fish b/fish/functions/fish_user_key_bindings.fish index 3ee7992..c671e9f 100644 --- a/fish/functions/fish_user_key_bindings.fish +++ b/fish/functions/fish_user_key_bindings.fish @@ -3,8 +3,11 @@ function fish_user_key_bindings bind \cq fkill # Bindings for fzf - if test -f (brew --prefix)/opt/fzf/shell/key-bindings.fish + if command -q brew source (brew --prefix)/opt/fzf/shell/key-bindings.fish fzf_key_bindings + else if command -q fzf-share + source (fzf-share)/key-bindings.fish + fzf_key_bindings end end