From 6baad2b3177917b3e9c0310d2ea59da7b4e0b05a Mon Sep 17 00:00:00 2001 From: Loic Nageleisen Date: Tue, 1 Jan 2013 15:49:20 +0100 Subject: [PATCH] histroy fixes --- bash/history | 3 +++ zsh/history | 9 ++++++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/bash/history b/bash/history index 8018fa8..3a1c90a 100644 --- a/bash/history +++ b/bash/history @@ -10,4 +10,7 @@ shopt -s histappend # ignore sequential duplicates export HISTCONTROL=ignoreboth +# more! +export HISTSIZE=10000 + # vim: ft=sh diff --git a/zsh/history b/zsh/history index beed1d1..f136b8c 100644 --- a/zsh/history +++ b/zsh/history @@ -1,9 +1,12 @@ # ignore sequential duplicates 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=1000 -SAVEHIST=1000 +HISTSIZE=10000 +SAVEHIST=10000 HISTFILE=~/.zsh_history # vim: ft=zsh