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").
commitddd480ac30579d780c8ffa9c590a8c86bb36d8d2
authorEelco Dolstra <eelco.dolstra@logicblox.com>
dateFri 25 Mar 2016, 17:15 (11 years ago)
parent7f61c72
nixos/modules/profiles/base.nix−1
@@ -17,7 +17,6 @@
1717 pkgs.ddrescue
1818 pkgs.ccrypt
1919 pkgs.cryptsetup # needed for dm-crypt volumes
20− pkgs.which # 88K size
2120
2221 # Some networking tools.
2322 pkgs.fuse
nixos/modules/programs/bash/bash.nix+1−1
@@ -56,7 +56,7 @@ in
5656 */
5757
5858 shellAliases = mkOption {
59− default = config.environment.shellAliases;
59+ default = config.environment.shellAliases // { which = "type -P"; };
6060 description = ''
6161 Set of aliases for bash shell. See <option>environment.shellAliases</option>
6262 for an option format description.