aboutsummaryrefslogtreecommitdiff
path: root/functions/icons.zsh
diff options
context:
space:
mode:
authorromkatv <roman.perepelitsa@gmail.com>2019-04-30 13:51:34 +0300
committerromkatv <roman.perepelitsa@gmail.com>2019-04-30 13:51:34 +0300
commit361eec6f95d31570c77b98f5405efe508592eadd (patch)
treea124b728f4b5649e6aaeccd535eeb2b1ec66f8a3 /functions/icons.zsh
parent6ef8e2f0cfe726f6df8a47615f50f0c50ac25693 (diff)
replace all -v checks with equivalents (trying to port to zsh 5.2)
Diffstat (limited to 'functions/icons.zsh')
-rwxr-xr-xfunctions/icons.zsh4
1 files changed, 2 insertions, 2 deletions
diff --git a/functions/icons.zsh b/functions/icons.zsh
index ca7b2b0a..d1cccffd 100755
--- a/functions/icons.zsh
+++ b/functions/icons.zsh
@@ -550,8 +550,8 @@ function _p9k_init_icons() {
function print_icon() {
local icon_name=$1
local var_name=POWERLEVEL9K_${icon_name}
- if [[ -v "$var_name" ]]; then
- echo -n "${(P)ICON_USER_VARIABLE}"
+ if [[ -n "${(tP)var_name}" ]]; then
+ echo -n "${(P)var_name}"
else
echo -n "${icons[$icon_name]}"
fi