mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-11 04:02:55 +03:00
zsh: don't export HISTFILE and friends
Just set them normally. Exporting them will propagate them to all executed programs such as bash (as used by nix-shell or nix run), and badness ensues when different formats are used.
This commit is contained in:
parent
9dcc876b37
commit
173f79f690
@ -189,9 +189,10 @@ in
|
||||
|
||||
. /etc/zinputrc
|
||||
|
||||
export SAVEHIST=${toString cfg.histSize}
|
||||
export HISTSIZE=${toString cfg.histSize}
|
||||
export HISTFILE=${cfg.histFile}
|
||||
# Don't export these, otherwise other shells (bash) will try to use same histfile
|
||||
SAVEHIST=${toString cfg.histSize}
|
||||
HISTSIZE=${toString cfg.histSize}
|
||||
HISTFILE=${cfg.histFile}
|
||||
|
||||
${optionalString (cfg.setOptions != []) "setopt ${concatStringsSep " " cfg.setOptions}"}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user