1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-12-27 20:29:47 +01:00

skim: use cfg.package in shell integrations

This commit is contained in:
Nicolas Berbiche 2022-01-10 21:51:06 -05:00 committed by Robert Helgesson
parent 204f9808d3
commit 5209ea0d8c
No known key found for this signature in database
GPG key ID: 36BDAA14C2797E89

View file

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