From 11604c298e1418d7cffb43e4daf3ccefbef3403c Mon Sep 17 00:00:00 2001 From: Ben O'Hara Date: Sun, 3 Jun 2012 00:04:44 +1000 Subject: [PATCH] fix --- modules/prompt/functions/prompt_solarized_setup | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/prompt/functions/prompt_solarized_setup b/modules/prompt/functions/prompt_solarized_setup index 35711c11..7c13c4a3 100644 --- a/modules/prompt/functions/prompt_solarized_setup +++ b/modules/prompt/functions/prompt_solarized_setup @@ -132,9 +132,9 @@ function prompt_solarized_setup { zstyle ':vcs_info:*:prompt:*' nvcsformats "" zstyle -a ':omz:module:prompt:solarized' $HOST '_prompt_host' - - prompt_host=$"prompt_$_prompt_host" - + if [ ! -z $_prompt_host ]; then + prompt_host=$"prompt_$_prompt_host" + fi zstyle -b ':omz:module:prompt:solarized' dark '_prompt_dark' if is-true "${_prompt_dark}"; then PROMPT="%(!.$prompt_red.$prompt_green)%n%f$prompt_base1 at $prompt_host%m%f$prompt_base1 in $prompt_base01%~%f"'${vcs_info_msg_0_}'"