mirror of
https://github.com/nix-community/home-manager
synced 2024-11-27 05:29:46 +01:00
scmpuff: add dependencies when shell integrations are enabled
This commit is contained in:
parent
e83414058e
commit
96c35e7fd5
1 changed files with 3 additions and 1 deletions
|
@ -54,7 +54,9 @@ in {
|
||||||
concatStringsSep " " ([ "--shell=${shell}" ]
|
concatStringsSep " " ([ "--shell=${shell}" ]
|
||||||
++ optional (!cfg.enableAliases) "--aliases=false");
|
++ optional (!cfg.enableAliases) "--aliases=false");
|
||||||
in {
|
in {
|
||||||
home.packages = [ cfg.package ];
|
home.packages = [ cfg.package ] ++ optional (cfg.enableBashIntegration
|
||||||
|
|| cfg.enableZshIntegration || cfg.enableFishIntegration) pkgs.which
|
||||||
|
++ optionals cfg.enableFishIntegration (with pkgs; [ gawk gnugrep ]);
|
||||||
|
|
||||||
programs.bash.initExtra = mkIf cfg.enableBashIntegration ''
|
programs.bash.initExtra = mkIf cfg.enableBashIntegration ''
|
||||||
eval "$(${cfg.package}/bin/scmpuff init ${mkArgs "bash"})"
|
eval "$(${cfg.package}/bin/scmpuff init ${mkArgs "bash"})"
|
||||||
|
|
Loading…
Reference in a new issue