diff options
author | Adam Hovorka <[email protected]> | 2019-10-13 00:02:40 -0600 |
---|---|---|
committer | Adam Hovorka <[email protected]> | 2019-10-13 00:02:40 -0600 |
commit | cf6b731f678ff5014c55fe0ff893fb82b304e4a5 (patch) | |
tree | c4be8b9d7dce8208badb9337d107c377e0b42c66 /base/zsh/prompt_pure_setup | |
parent | 939d1fa0906d93fe7e52b9a8e35f456f66a7def5 (diff) |
Add zsh prompt changes from schizo
Diffstat (limited to 'base/zsh/prompt_pure_setup')
-rw-r--r-- | base/zsh/prompt_pure_setup | 5 |
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 |