From 5a881d9164211673e138b0c091ced358dc065d71 Mon Sep 17 00:00:00 2001 From: Steven Lu Date: Fri, 16 Aug 2013 00:39:40 -0400 Subject: [PATCH] Wtf typo --- zshrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zshrc b/zshrc index c45c32318..46d35bb48 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