From 1385aab44fb93f3f89d1996d2097b61297f5ee3e Mon Sep 17 00:00:00 2001 From: staticsafe Date: Wed, 11 Jan 2012 21:51:46 -0500 Subject: [PATCH] added new opts. --- .zshrc | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.zshrc b/.zshrc index f9f4172..5da8d47 100644 --- a/.zshrc +++ b/.zshrc @@ -9,7 +9,9 @@ prompt elite2 setopt APPEND_HISTORY setopt EXTENDED_HISTORY setopt EXTENDED_GLOB +setopt AUTO_CD +#history stuff # number of lines kept in history export HISTSIZE=1000 # number of lines saved in the history after logout @@ -18,6 +20,12 @@ export SAVEHIST=1000 export HISTFILE=~/.zhistory # append command to history file once executed setopt inc_append_history +# Do not write events to history that are duplicates of previous events +setopt HIST_IGNORE_DUPS +# When searching history don't display results already cycled through twice +setopt HIST_FIND_NO_DUPS +# Remove extra blanks from each command line being added to history +setopt HIST_REDUCE_BLANKS #aliases alias rmdir='rm -r'