aboutsummaryrefslogtreecommitdiff
path: root/powerlevel9k.zsh-theme
diff options
context:
space:
mode:
authorJohn Koelndorfer <jkoelndorfer@gmail.com>2015-09-02 02:55:14 +0300
committerJohn Koelndorfer <jkoelndorfer@gmail.com>2015-09-02 02:55:14 +0300
commit378b910af695ab641c3b448339d8d79b7a15acd7 (patch)
tree714950b8bc3f81ca0b3d5a0e6b0682d884262f32 /powerlevel9k.zsh-theme
parent893bfe243d853ccb63efb4144f9d91a5c20a0160 (diff)
Use defined to check if ICON_USER_VARIABLE is defined.
Diffstat (limited to 'powerlevel9k.zsh-theme')
-rw-r--r--powerlevel9k.zsh-theme2
1 files changed, 1 insertions, 1 deletions
diff --git a/powerlevel9k.zsh-theme b/powerlevel9k.zsh-theme
index d5f77148..3b89b1df 100644
--- a/powerlevel9k.zsh-theme
+++ b/powerlevel9k.zsh-theme
@@ -60,7 +60,7 @@ function print_icon() {
local icon_name=$1
local ICON_USER_VARIABLE=POWERLEVEL9K_${icon_name}
local USER_ICON=${(P)ICON_USER_VARIABLE}
- if [[ -n "$USER_ICON" ]]; then
+ if defined "$ICON_USER_VARIABLE"; then
echo -n $USER_ICON
else
echo -n ${icons[$icon_name]}