From f9d5f98fb6b1ae1e9ff1b4c031caadff57fb7436 Mon Sep 17 00:00:00 2001 From: staticsafe Date: Sun, 8 Jan 2012 14:41:46 -0500 Subject: [PATCH] Adding options for zsh history. --- .zshrc | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.zshrc b/.zshrc index 166e9a1..2d4c7a3 100644 --- a/.zshrc +++ b/.zshrc @@ -10,6 +10,15 @@ setopt APPEND_HISTORY setopt EXTENDED_HISTORY setopt EXTENDED_GLOB +# number of lines kept in history +export HISTSIZE=1000 +# number of lines saved in the history after logout +export SAVEHIST=1000 +# location of history +export HISTFILE=~/.zhistory +# append command to history file once executed +setopt inc_append_history + #aliases alias rmdir='rm -r' alias sl='ls'