From ddd480ac30579d780c8ffa9c590a8c86bb36d8d2 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Fri, 25 Mar 2016 17:15:57 +0100 Subject: [PATCH] Revert "Remove which -> type -P alias." This reverts commit e8e8164f348a0e8655e1d50a7a404bdc62055f4e. I misread the original commit as adding the "which" package, but it only adds it to base.nix. So then the original motivation (making it work in subshells) doesn't hold. Note that we already have some convenience aliases that don't work in subshells either (such as "ll"). --- nixos/modules/profiles/base.nix | 1 - nixos/modules/programs/bash/bash.nix | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/nixos/modules/profiles/base.nix b/nixos/modules/profiles/base.nix index 09183ee18092..b8057cadce25 100644 --- a/nixos/modules/profiles/base.nix +++ b/nixos/modules/profiles/base.nix @@ -17,7 +17,6 @@ pkgs.ddrescue pkgs.ccrypt pkgs.cryptsetup # needed for dm-crypt volumes - pkgs.which # 88K size # Some networking tools. pkgs.fuse diff --git a/nixos/modules/programs/bash/bash.nix b/nixos/modules/programs/bash/bash.nix index e4e264ec0036..1c3c07a1c210 100644 --- a/nixos/modules/programs/bash/bash.nix +++ b/nixos/modules/programs/bash/bash.nix @@ -56,7 +56,7 @@ in */ shellAliases = mkOption { - default = config.environment.shellAliases; + default = config.environment.shellAliases // { which = "type -P"; }; description = '' Set of aliases for bash shell. See for an option format description.