varstash: no need to use regex, avoids 'failed to load module: zsh/regex' error

This commit is contained in:
Daniel Hahler 2014-12-18 19:45:19 +01:00
parent d136fd8731
commit f5077e320d
1 changed files with 1 additions and 1 deletions

View File

@ -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