1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-11-23 19:49:45 +01:00

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 '' programs.bash.initExtra = mkIf cfg.enableBashIntegration ''
if [[ :$SHELLOPTS: =~ :(vi|emacs): ]]; then if [[ :$SHELLOPTS: =~ :(vi|emacs): ]]; then
. ${pkgs.fzf}/share/fzf/completion.bash . ${cfg.package}/share/fzf/completion.bash
. ${pkgs.fzf}/share/fzf/key-bindings.bash . ${cfg.package}/share/fzf/key-bindings.bash
fi fi
''; '';
programs.zsh.initExtra = mkIf cfg.enableZshIntegration '' programs.zsh.initExtra = mkIf cfg.enableZshIntegration ''
if [[ $options[zle] = on ]]; then if [[ $options[zle] = on ]]; then
. ${pkgs.fzf}/share/fzf/completion.zsh . ${cfg.package}/share/fzf/completion.zsh
. ${pkgs.fzf}/share/fzf/key-bindings.zsh . ${cfg.package}/share/fzf/key-bindings.zsh
fi fi
''; '';
programs.fish.shellInit = mkIf cfg.enableFishIntegration '' 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
''; '';
}; };
} }