From f5077e320de2dbd783aefb8dbb4340c40fb15b32 Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Thu, 18 Dec 2014 19:45:19 +0100 Subject: [PATCH] varstash: no need to use regex, avoids 'failed to load module: zsh/regex' error --- lib/varstash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/varstash b/lib/varstash index 9844c32..320649c 100644 --- a/lib/varstash +++ b/lib/varstash @@ -231,7 +231,7 @@ function stash() { function autostash() { local run_from_autostash=1 while [[ -n $1 ]]; do - if [[ $1 == "alias" && $2 =~ "=" ]]; then + if [[ $1 == "alias" && $2 = *=* ]]; then shift local _stashing_alias_assign=1 fi -- 2.48.1