From cf6b731f678ff5014c55fe0ff893fb82b304e4a5 Mon Sep 17 00:00:00 2001 From: Adam Hovorka Date: Sun, 13 Oct 2019 00:02:40 -0600 Subject: Add zsh prompt changes from schizo --- base/zsh/prompt_pure_setup | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'base') 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 -- cgit v1.2.3-70-g09d2