fzf: also use custom package for shell integrations (#2119)

This commit is contained in:
Josh Holland 2021-06-17 22:57:25 +01:00 committed by GitHub
parent 6d9bff77ed
commit 2f6d5c90f4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -148,20 +148,20 @@ in {
programs.bash.initExtra = mkIf cfg.enableBashIntegration ''
if [[ :$SHELLOPTS: =~ :(vi|emacs): ]]; then
. ${pkgs.fzf}/share/fzf/completion.bash
. ${pkgs.fzf}/share/fzf/key-bindings.bash
. ${cfg.package}/share/fzf/completion.bash
. ${cfg.package}/share/fzf/key-bindings.bash
fi
'';
programs.zsh.initExtra = mkIf cfg.enableZshIntegration ''
if [[ $options[zle] = on ]]; then
. ${pkgs.fzf}/share/fzf/completion.zsh
. ${pkgs.fzf}/share/fzf/key-bindings.zsh
. ${cfg.package}/share/fzf/completion.zsh
. ${cfg.package}/share/fzf/key-bindings.zsh
fi
'';
programs.fish.shellInit = mkIf cfg.enableFishIntegration ''
source ${pkgs.fzf}/share/fzf/key-bindings.fish && fzf_key_bindings
source ${cfg.package}/share/fzf/key-bindings.fish && fzf_key_bindings
'';
};
}