aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--base/zsh/prompt_pure_setup5
1 files changed, 4 insertions, 1 deletions
diff --git a/base/zsh/prompt_pure_setup b/base/zsh/prompt_pure_setup
index be87f60..a955849 100644
--- a/base/zsh/prompt_pure_setup
+++ b/base/zsh/prompt_pure_setup
@@ -129,7 +129,10 @@ prompt_pure_preprompt_render() {
# host ID
if [[ "$PROMPT_HOST_COLOR" ]]; then
- preprompt+="%b%F{black}%K{$PROMPT_HOST_COLOR} "
+ preprompt+="%b%F{"
+ if [[ "$PROMPT_HOST_FCOLOR" ]]; then
+ preprompt+="$PROMPT_HOST_FCOLOR"; else preprompt+="black"; fi
+ preprompt+="}%K{$PROMPT_HOST_COLOR} "
[[ "$PROMPT_SHORT_HOSTNAME" ]] && preprompt+="$PROMPT_SHORT_HOSTNAME "
preprompt+="%F{$PROMPT_HOST_COLOR}%K{18}%f"
fi