mirror of
https://github.com/nix-community/home-manager
synced 2024-11-26 21:19:45 +01:00
skim: use cfg.package in shell integrations
This commit is contained in:
parent
204f9808d3
commit
5209ea0d8c
1 changed files with 5 additions and 5 deletions
|
@ -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
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue