tangled
alpha
login
or
join now
tjh.dev
/
nixpkgs
Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
0
fork
atom
overview
issues
pulls
pipelines
programs.zsh: allow override of history defaults
makefu
10 years ago
ed83b8a6
4f025e02
+6
-6
1 changed file
expand all
collapse all
unified
split
nixos
modules
programs
zsh
zsh.nix
+6
-6
nixos/modules/programs/zsh/zsh.nix
···
98
98
loginShellInit = cfge.loginShellInit;
99
99
100
100
interactiveShellInit = ''
101
101
-
${cfge.interactiveShellInit}
102
102
-
103
103
-
${cfg.promptInit}
104
104
-
${zshAliases}
105
105
-
106
106
-
# Some sane history defaults
101
101
+
# history defaults
107
102
export SAVEHIST=2000
108
103
export HISTSIZE=2000
109
104
export HISTFILE=$HOME/.zsh_history
110
105
111
106
setopt HIST_IGNORE_DUPS SHARE_HISTORY HIST_FCNTL_LOCK
107
107
+
108
108
+
${cfge.interactiveShellInit}
109
109
+
110
110
+
${cfg.promptInit}
111
111
+
${zshAliases}
112
112
113
113
# Tell zsh how to find installed completions
114
114
for p in ''${(z)NIX_PROFILES}; do