From 1f450adbcba4ed6b62db493586c9137d644b1c5b Mon Sep 17 00:00:00 2001 From: Steven Lu Date: Wed, 14 Aug 2013 16:08:00 -0400 Subject: [PATCH] Anchoring this as well so culling is not overzealous --- zshrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zshrc b/zshrc index c73847ca8..c45c32318 100644 --- a/zshrc +++ b/zshrc @@ -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 =~ hist(ory)? ) || \ + [[ ( -z $COMMAND_STR ) || ( $COMMAND_STR =~ $hist(ory)?$ ) || \ ( $COMMAND_STR =~ ^l(s\|l\|a)?$ ) || \ ( $COMMAND_STR =~ ^(d\|gd\|git\ diff\|glp\|gg)$ ) \ ]] && return 1