diff options
Diffstat (limited to 'functions/utilities.zsh')
-rwxr-xr-x | functions/utilities.zsh | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/functions/utilities.zsh b/functions/utilities.zsh index eefe47b7..88470885 100755 --- a/functions/utilities.zsh +++ b/functions/utilities.zsh @@ -32,8 +32,10 @@ function set_default() { } function _p9k_g_expand() { + (( $+parameters[$1] )) || return local -a ts=("${=$(typeset -p $1)}") shift ts + local x for x in "${ts[@]}"; do [[ $x == -* ]] || break # Don't change readonly variables. Ideally, we shouldn't modify any variables at all, |