diff options
author | romkatv <roman.perepelitsa@gmail.com> | 2019-04-30 15:18:00 +0300 |
---|---|---|
committer | romkatv <roman.perepelitsa@gmail.com> | 2019-04-30 15:18:00 +0300 |
commit | c6c323ebadea70b3026cada6a6487bee23e1506c (patch) | |
tree | b8926a2efb745adac8e45e05efb200e22c466695 /functions/icons.zsh | |
parent | f90bf482a5d69dfd13f5999d8d7124128ab68724 (diff) | |
parent | 79ea46de97e7e80f56fd725b34be589056922edd (diff) |
Merge branch 'test'
Diffstat (limited to 'functions/icons.zsh')
-rwxr-xr-x | functions/icons.zsh | 4 |
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 |