skim: use cfg.package in shell integrations
This commit is contained in:
parent
204f9808d3
commit
5209ea0d8c
|
@ -124,20 +124,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.skim}/share/skim/completion.bash
|
. ${cfg.package}/share/skim/completion.bash
|
||||||
. ${pkgs.skim}/share/skim/key-bindings.bash
|
. ${cfg.package}/share/skim/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.skim}/share/skim/completion.zsh
|
. ${cfg.package}/share/skim/completion.zsh
|
||||||
. ${pkgs.skim}/share/skim/key-bindings.zsh
|
. ${cfg.package}/share/skim/key-bindings.zsh
|
||||||
fi
|
fi
|
||||||
'';
|
'';
|
||||||
|
|
||||||
programs.fish.shellInit = mkIf cfg.enableFishIntegration ''
|
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