diff options
author | Marc Cornellà <marc.cornella@live.com> | 2020-04-05 21:34:53 +0200 |
---|---|---|
committer | Marc Cornellà <marc.cornella@live.com> | 2020-04-05 21:37:45 +0200 |
commit | 0caae9082a3bbb14b05938a7d0f292c2e4d161f4 (patch) | |
tree | 1ed7cf2300f7bac54b40e8c357966eb0b5b23665 /lib/functions.zsh | |
parent | dbd16000a55f57e3f1a1fdc9557eacd5577a4afe (diff) | |
download | zsh-0caae9082a3bbb14b05938a7d0f292c2e4d161f4.tar.gz zsh-0caae9082a3bbb14b05938a7d0f292c2e4d161f4.tar.bz2 zsh-0caae9082a3bbb14b05938a7d0f292c2e4d161f4.zip |
lib: speed up slow parts of the lib files; other small fixes
Diffstat (limited to 'lib/functions.zsh')
-rw-r--r-- | lib/functions.zsh | 2 |
1 files changed, 1 insertions, 1 deletions
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 } |