programs.zsh: allow override of history defaults
This commit is contained in:
parent
4f025e02c0
commit
ed83b8a61c
@ -98,18 +98,18 @@ in
|
|||||||
loginShellInit = cfge.loginShellInit;
|
loginShellInit = cfge.loginShellInit;
|
||||||
|
|
||||||
interactiveShellInit = ''
|
interactiveShellInit = ''
|
||||||
${cfge.interactiveShellInit}
|
# history defaults
|
||||||
|
|
||||||
${cfg.promptInit}
|
|
||||||
${zshAliases}
|
|
||||||
|
|
||||||
# Some sane history defaults
|
|
||||||
export SAVEHIST=2000
|
export SAVEHIST=2000
|
||||||
export HISTSIZE=2000
|
export HISTSIZE=2000
|
||||||
export HISTFILE=$HOME/.zsh_history
|
export HISTFILE=$HOME/.zsh_history
|
||||||
|
|
||||||
setopt HIST_IGNORE_DUPS SHARE_HISTORY HIST_FCNTL_LOCK
|
setopt HIST_IGNORE_DUPS SHARE_HISTORY HIST_FCNTL_LOCK
|
||||||
|
|
||||||
|
${cfge.interactiveShellInit}
|
||||||
|
|
||||||
|
${cfg.promptInit}
|
||||||
|
${zshAliases}
|
||||||
|
|
||||||
# Tell zsh how to find installed completions
|
# Tell zsh how to find installed completions
|
||||||
for p in ''${(z)NIX_PROFILES}; do
|
for p in ''${(z)NIX_PROFILES}; do
|
||||||
fpath+=($p/share/zsh/site-functions $p/share/zsh/$ZSH_VERSION/functions)
|
fpath+=($p/share/zsh/site-functions $p/share/zsh/$ZSH_VERSION/functions)
|
||||||
|
Loading…
Reference in New Issue
Block a user