diff options
-rw-r--r-- | bash/bashrc | 8 | ||||
-rw-r--r-- | pdksh/pdkshrc | 2 | ||||
-rw-r--r-- | zsh/zshrc | 4 |
3 files changed, 7 insertions, 7 deletions
diff --git a/bash/bashrc b/bash/bashrc index 220ecec6..7defd85d 100644 --- a/bash/bashrc +++ b/bash/bashrc @@ -19,11 +19,11 @@ if shopt -q restricted_shell ; then return fi -# Keep around sixteen million lines of history in file -HISTFILESIZE=$((1 << 24)) +# Keep around four thousand lines of history in file +HISTFILESIZE=$((1 << 12)) -# Keep around four thousand lines of history in memory -HISTSIZE=$((1 << 12)) +# Keep around one thousand lines of history in memory +HISTSIZE=$((1 << 10)) # Ignore duplicate commands and whitespace in history HISTCONTROL=ignoreboth diff --git a/pdksh/pdkshrc b/pdksh/pdkshrc index 6039eea3..48799c2e 100644 --- a/pdksh/pdkshrc +++ b/pdksh/pdkshrc @@ -4,7 +4,7 @@ set -o emacs # Save history HISTFILE=$HOME/.pdksh_history -HISTSIZE=$((1 << 12)) +HISTSIZE=$((1 << 10)) # Load any supplementary scripts for pdkshrc in "$HOME"/.pdkshrc.d/*.pdksh ; do @@ -3,9 +3,9 @@ bindkey -e # History settings setopt histignorealldups sharehistory -HISTSIZE=$((1 << 12)) -SAVEHIST=$((1 << 24)) HISTFILE=$HOME/.zsh_history +SAVEHIST=$((1 << 12)) +HISTSIZE=$((1 << 10)) # Load POSIX shell functions source "$ENV" |