summaryrefslogtreecommitdiff
path: root/themes/fino-time.zsh-theme
diff options
context:
space:
mode:
authorRobby Russell <robby@planetargon.com>2015-06-05 08:07:12 -0700
committerRobby Russell <robby@planetargon.com>2015-06-05 08:07:12 -0700
commit4224c2a1af2a1b99c14ef81012af321c39856cf5 (patch)
treec2a4481bedab6fda135cae8176d7d895100bc4d7 /themes/fino-time.zsh-theme
parent51e366e5462e6be7f7658c8285e6741531ede744 (diff)
parent8cf04ed3d7d5552bc2242a5987d46f6faf0fe2dc (diff)
downloadzsh-4224c2a1af2a1b99c14ef81012af321c39856cf5.tar.gz
zsh-4224c2a1af2a1b99c14ef81012af321c39856cf5.tar.bz2
zsh-4224c2a1af2a1b99c14ef81012af321c39856cf5.zip
Merge pull request #3494 from AlexTalker/short-host
Fix echo nothing if $SHORT_HOST doesn't exist.
Diffstat (limited to 'themes/fino-time.zsh-theme')
-rw-r--r--themes/fino-time.zsh-theme2
1 files changed, 1 insertions, 1 deletions
diff --git a/themes/fino-time.zsh-theme b/themes/fino-time.zsh-theme
index 67b6b6e08..6e7e654ff 100644
--- a/themes/fino-time.zsh-theme
+++ b/themes/fino-time.zsh-theme
@@ -21,7 +21,7 @@ function prompt_char {
}
function box_name {
- [ -f ~/.box-name ] && cat ~/.box-name || echo $SHORT_HOST || echo $HOST
+ [ -f ~/.box-name ] && cat ~/.box-name || echo ${SHORT_HOST:-HOST}
}