diff options
Diffstat (limited to 'themes/candy-kingdom.zsh-theme')
-rw-r--r-- | themes/candy-kingdom.zsh-theme | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/themes/candy-kingdom.zsh-theme b/themes/candy-kingdom.zsh-theme index ad03cc320..31e63df15 100644 --- a/themes/candy-kingdom.zsh-theme +++ b/themes/candy-kingdom.zsh-theme @@ -11,7 +11,9 @@ patches: <patches|join( → )|pre_applied(%{$fg[yellow]%})|post_applied(%{$reset fi 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/%/%%}" } PROMPT=' |