summaryrefslogtreecommitdiff
path: root/lib/functions.zsh
diff options
context:
space:
mode:
authorMarc Cornellà <marc.cornella@live.com>2020-04-05 21:34:53 +0200
committerMarc Cornellà <marc.cornella@live.com>2020-04-05 21:37:45 +0200
commit0caae9082a3bbb14b05938a7d0f292c2e4d161f4 (patch)
tree1ed7cf2300f7bac54b40e8c357966eb0b5b23665 /lib/functions.zsh
parentdbd16000a55f57e3f1a1fdc9557eacd5577a4afe (diff)
downloadzsh-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.zsh2
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
}