summaryrefslogtreecommitdiff
path: root/themes
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
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')
-rw-r--r--themes/candy-kingdom.zsh-theme2
-rw-r--r--themes/fino-time.zsh-theme2
-rw-r--r--themes/fino.zsh-theme2
3 files changed, 3 insertions, 3 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='
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}
}
diff --git a/themes/fino.zsh-theme b/themes/fino.zsh-theme
index 50d41e899..e4477589e 100644
--- a/themes/fino.zsh-theme
+++ b/themes/fino.zsh-theme
@@ -17,7 +17,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}
}
local ruby_env=''