aboutsummaryrefslogtreecommitdiff
path: root/base
diff options
context:
space:
mode:
authorAdam Hovorka <[email protected]>2019-10-13 00:02:40 -0600
committerAdam Hovorka <[email protected]>2019-10-13 00:02:40 -0600
commitcf6b731f678ff5014c55fe0ff893fb82b304e4a5 (patch)
treec4be8b9d7dce8208badb9337d107c377e0b42c66 /base
parent939d1fa0906d93fe7e52b9a8e35f456f66a7def5 (diff)
Add zsh prompt changes from schizo
Diffstat (limited to 'base')
-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