mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2025-08-19 11:02:20 +02:00
lib: speed up slow parts of the lib files; other small fixes
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user