More to exclude

This commit is contained in:
Steven Lu 2013-08-09 12:09:39 -04:00
commit 124e114a97

2
zshrc
View file

@ -61,7 +61,7 @@ export SAVEHIST=200000
# This avoids problems that crop up when I try to squish the cwd into the history entry.
function zshaddhistory() {
COMMAND_STR=${1%%$'\n'}
[[ ( -z $COMMAND_STR ) || ( $COMMAND_STR == history ) || \
[[ ( -z $COMMAND_STR ) || ( $COMMAND_STR =~ hist(ory)? ) || \
( $COMMAND_STR =~ ^l(s\|l\|a)?$ ) || \
( $COMMAND_STR =~ ^(d\|gd\|git\ diff\|glp\|gg)$ ) \
]] && return 1