diff options
Diffstat (limited to 'lib/functions.zsh')
-rw-r--r-- | lib/functions.zsh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/functions.zsh b/lib/functions.zsh index 91e9cf895..678e29ce7 100644 --- a/lib/functions.zsh +++ b/lib/functions.zsh @@ -8,7 +8,7 @@ function uninstall_oh_my_zsh() { function upgrade_oh_my_zsh() { env ZSH="$ZSH" sh "$ZSH/tools/upgrade.sh" - rm -rf "$ZSH/log/update.lock" + command rm -rf "$ZSH/log/update.lock" } function take() { @@ -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 } |