histroy fixes

This commit is contained in:
Loic Nageleisen 2013-01-01 15:49:20 +01:00
parent c03c104606
commit 6baad2b317
2 changed files with 9 additions and 3 deletions

View file

@ -10,4 +10,7 @@ shopt -s histappend
# ignore sequential duplicates # ignore sequential duplicates
export HISTCONTROL=ignoreboth export HISTCONTROL=ignoreboth
# more!
export HISTSIZE=10000
# vim: ft=sh # vim: ft=sh

View file

@ -1,9 +1,12 @@
# ignore sequential duplicates # ignore sequential duplicates
setopt hist_ignore_dups setopt hist_ignore_dups
setopt hist_ignore_space
setopt hist_reduce_blanks
setopt append_history
setopt hist_verify
# keep 1000 lines of history within the shell and save it to ~/.zsh_history: HISTSIZE=10000
HISTSIZE=1000 SAVEHIST=10000
SAVEHIST=1000
HISTFILE=~/.zsh_history HISTFILE=~/.zsh_history
# vim: ft=zsh # vim: ft=zsh