mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 23:36:17 +01:00
bash: Disable hashing of command lookups in interactive shells
This just confuses people when (say) using multiple profiles. Performance benefits for interactive shells are likely to be very small anyway.
This commit is contained in:
parent
57c35c94ca
commit
24a44c98d2
1 changed files with 6 additions and 3 deletions
|
@ -102,9 +102,9 @@ in
|
|||
target = "profile";
|
||||
}
|
||||
|
||||
{ # /etc/bashrc: executed every time a bash starts. Sources
|
||||
# /etc/profile to ensure that the system environment is
|
||||
# configured properly.
|
||||
{ # /etc/bashrc: executed every time an interactive bash
|
||||
# starts. Sources /etc/profile to ensure that the system
|
||||
# environment is configured properly.
|
||||
source = pkgs.substituteAll {
|
||||
src = ./bashrc.sh;
|
||||
inherit (cfg) interactiveShellInit;
|
||||
|
@ -133,6 +133,9 @@ in
|
|||
${cfg.promptInit}
|
||||
${initBashCompletion}
|
||||
${shellAliases}
|
||||
|
||||
# Disable hashing (i.e. caching) of command lookups.
|
||||
set +h
|
||||
'';
|
||||
|
||||
system.build.binsh = pkgs.bashInteractive;
|
||||
|
|
Loading…
Reference in a new issue