aboutsummaryrefslogtreecommitdiff
path: root/zsh/appearance.zsh
diff options
context:
space:
mode:
authorMatt Singleton <matthew.j.singleton@gmail.com>2011-06-10 16:41:16 -0400
committerMatt Singleton <matthew.j.singleton@gmail.com>2011-06-10 16:41:16 -0400
commita5d2ab1158bb3daef75549a6c1dd1010050c82bd (patch)
treea914b85ff3f7a0ff8286bcf1853014bb3aa7ff67 /zsh/appearance.zsh
parentc3b2b1adc5904676184ebbd4a9fde0571c8f4d5d (diff)
override the host prompt format for more details
Diffstat (limited to 'zsh/appearance.zsh')
-rw-r--r--zsh/appearance.zsh4
1 files changed, 2 insertions, 2 deletions
diff --git a/zsh/appearance.zsh b/zsh/appearance.zsh
index 84d8471..97d14b4 100644
--- a/zsh/appearance.zsh
+++ b/zsh/appearance.zsh
@@ -77,9 +77,9 @@ function ve_prompt_info {
# print the hostname in green if local, else red
function hostname_info {
if [[ $ZSH_LOCAL_ENV == "true" ]]; then
- echo "%{$fg[green]%}%m%{$reset_color%}"
+ echo "%{$fg[green]%}%{$ZSH_HOST_PREFIX%}%m%{$ZSH_HOST_SUFFIX%}%{$reset_color%}"
else
- echo "%{$fg[green]%}%{$bg[red]%}%m%{$reset_color%}"
+ echo "%{$fg[green]%}%{$bg[red]%}%{$ZSH_HOST_PREFIX%}%m%{$ZSH_HOST_SUFFIX%}%{$reset_color%}"
fi
}