diff options
author | Alex Talker <alextalker@openmailbox.org> | 2015-01-15 04:13:40 +0300 |
---|---|---|
committer | Alex Talker <alextalker@openmailbox.org> | 2015-02-15 20:44:35 +0300 |
commit | 8cf04ed3d7d5552bc2242a5987d46f6faf0fe2dc (patch) | |
tree | 9a30e0493b72fc3345f4fbddaaa2445a2bda2376 /themes/candy-kingdom.zsh-theme | |
parent | 5ee54032da9e5f9c5bd96dae877fbf6e08ad7af6 (diff) | |
download | zsh-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-theme | 2 |
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=' |