1
0
mirror of https://github.com/Tarrasch/zsh-autoenv.git synced 2024-12-22 10:50:16 +02:00

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

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