From 0caae9082a3bbb14b05938a7d0f292c2e4d161f4 Mon Sep 17 00:00:00 2001 From: Marc Cornellà Date: Sun, 5 Apr 2020 21:34:53 +0200 Subject: lib: speed up slow parts of the lib files; other small fixes --- lib/functions.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/functions.zsh') diff --git a/lib/functions.zsh b/lib/functions.zsh index f934ab968..678e29ce7 100644 --- a/lib/functions.zsh +++ b/lib/functions.zsh @@ -89,7 +89,7 @@ function default() { # 0 if the env variable exists, 3 if it was set # function env_default() { - (( ${${(@f):-$(typeset +xg)}[(I)$1]} )) && return 0 + [[ ${parameters[$1]} = *-export* ]] && return 0 export "$1=$2" && return 3 } -- cgit v1.2.3-70-g09d2