From 96c35e7fd59f5487a685663b291ead2221349a32 Mon Sep 17 00:00:00 2001 From: command_block Date: Fri, 17 May 2024 01:10:57 +0800 Subject: [PATCH] scmpuff: add dependencies when shell integrations are enabled --- modules/programs/scmpuff.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/programs/scmpuff.nix b/modules/programs/scmpuff.nix index a85ae8d9c..2a59444a3 100644 --- a/modules/programs/scmpuff.nix +++ b/modules/programs/scmpuff.nix @@ -54,7 +54,9 @@ in { concatStringsSep " " ([ "--shell=${shell}" ] ++ optional (!cfg.enableAliases) "--aliases=false"); 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 '' eval "$(${cfg.package}/bin/scmpuff init ${mkArgs "bash"})"