summaryrefslogtreecommitdiff
path: root/themes/candy-kingdom.zsh-theme
diff options
context:
space:
mode:
authorAlex Talker <alextalker@openmailbox.org>2015-01-15 04:13:40 +0300
committerAlex Talker <alextalker@openmailbox.org>2015-02-15 20:44:35 +0300
commit8cf04ed3d7d5552bc2242a5987d46f6faf0fe2dc (patch)
tree9a30e0493b72fc3345f4fbddaaa2445a2bda2376 /themes/candy-kingdom.zsh-theme
parent5ee54032da9e5f9c5bd96dae877fbf6e08ad7af6 (diff)
downloadzsh-8cf04ed3d7d5552bc2242a5987d46f6faf0fe2dc.tar.gz
zsh-8cf04ed3d7d5552bc2242a5987d46f6faf0fe2dc.tar.bz2
zsh-8cf04ed3d7d5552bc2242a5987d46f6faf0fe2dc.zip
Fix echo nothing if $SHORT_HOST doesn't exist.
Diffstat (limited to 'themes/candy-kingdom.zsh-theme')
-rw-r--r--themes/candy-kingdom.zsh-theme2
1 files changed, 1 insertions, 1 deletions
diff --git a/themes/candy-kingdom.zsh-theme b/themes/candy-kingdom.zsh-theme
index 889128758..adba1ad39 100644
--- a/themes/candy-kingdom.zsh-theme
+++ b/themes/candy-kingdom.zsh-theme
@@ -13,7 +13,7 @@ patches: <patches|join( → )|pre_applied(%{$fg[yellow]%})|post_applied(%{$reset
}
function box_name {
- [ -f ~/.box-name ] && cat ~/.box-name || echo $SHORT_HOST || echo $HOST
+ [ -f ~/.box-name ] && cat ~/.box-name || echo ${SHORT_HOST:-HOST}
}
PROMPT='