aboutsummaryrefslogtreecommitdiff
path: root/functions/utilities.zsh
diff options
context:
space:
mode:
authorromkatv <roman.perepelitsa@gmail.com>2019-04-30 15:18:00 +0300
committerromkatv <roman.perepelitsa@gmail.com>2019-04-30 15:18:00 +0300
commitc6c323ebadea70b3026cada6a6487bee23e1506c (patch)
treeb8926a2efb745adac8e45e05efb200e22c466695 /functions/utilities.zsh
parentf90bf482a5d69dfd13f5999d8d7124128ab68724 (diff)
parent79ea46de97e7e80f56fd725b34be589056922edd (diff)
Merge branch 'test'
Diffstat (limited to 'functions/utilities.zsh')
-rwxr-xr-xfunctions/utilities.zsh2
1 files changed, 1 insertions, 1 deletions
diff --git a/functions/utilities.zsh b/functions/utilities.zsh
index 7a322e57..9821b287 100755
--- a/functions/utilities.zsh
+++ b/functions/utilities.zsh
@@ -22,7 +22,7 @@ function set_default() {
local varname=$1
shift
- if [[ -v $varname ]]; then
+ if [[ -n ${(tP)varname} ]]; then
typeset $flags $varname
elif [[ "$flags" == *[aA]* ]]; then
eval "typeset ${(@q)flags} ${(q)varname}=(${(qq)@})"