l 2 zsh: fix history size via hack

This commit is contained in:
lassulus 2016-06-26 17:10:25 +02:00
parent 5608bc02d7
commit 03eaa03200

View File

@ -7,9 +7,6 @@
zsh-newuser-install() { :; } zsh-newuser-install() { :; }
''; '';
interactiveShellInit = '' interactiveShellInit = ''
HISTFILE=~/.histfile
HISTSIZE=1000000
SAVEHIST=100000
#unsetopt nomatch #unsetopt nomatch
setopt autocd extendedglob setopt autocd extendedglob
bindkey -e bindkey -e
@ -92,6 +89,11 @@
esac esac
''; '';
promptInit = '' promptInit = ''
# TODO: figure out why we need to set this here
HISTSIZE=900001
HISTFILESIZE=$HISTSIZE
SAVEHIST=$HISTSIZE
autoload -U promptinit autoload -U promptinit
promptinit promptinit