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:
parent
6d9bff77ed
commit
2f6d5c90f4
1 changed files with 5 additions and 5 deletions
|
@ -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
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue