summaryrefslogtreecommitdiff
path: root/themes/fino.zsh-theme
diff options
context:
space:
mode:
Diffstat (limited to 'themes/fino.zsh-theme')
-rw-r--r--themes/fino.zsh-theme4
1 files changed, 3 insertions, 1 deletions
diff --git a/themes/fino.zsh-theme b/themes/fino.zsh-theme
index 2523c1776..9365a3c42 100644
--- a/themes/fino.zsh-theme
+++ b/themes/fino.zsh-theme
@@ -21,7 +21,9 @@ function prompt_char {
}
function box_name {
- [ -f ~/.box-name ] && cat ~/.box-name || echo ${SHORT_HOST:-$HOST}
+ local box="${SHORT_HOST:-$HOST}"
+ [[ -f ~/.box-name ]] && box="$(< ~/.box-name)"
+ echo "${box:gs/%/%%}"
}
local ruby_env='$(ruby_prompt_info)'