From a0fd4f4fec6d3dea930b9897880512834a19660e Mon Sep 17 00:00:00 2001 From: Adrien Plazas Date: Tue, 25 Jun 2024 14:13:01 +0200 Subject: [PATCH] fix(agnoster): print white text for black segments This makes them readable in light terminals too and not only dark ones. --- themes/agnoster.zsh-theme | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/themes/agnoster.zsh-theme b/themes/agnoster.zsh-theme index c2a542163..fb616fa98 100644 --- a/themes/agnoster.zsh-theme +++ b/themes/agnoster.zsh-theme @@ -89,7 +89,7 @@ prompt_end() { # Context: user@hostname (who am I and where am I) prompt_context() { if [[ "$USERNAME" != "$DEFAULT_USER" || -n "$SSH_CLIENT" ]]; then - prompt_segment black default "%(!.%{%F{yellow}%}.)%n@%m" + prompt_segment black white "%(!.%{%F{yellow}%}.)%n@%m" fi } @@ -238,7 +238,7 @@ prompt_status() { [[ $UID -eq 0 ]] && symbols+="%{%F{yellow}%}⚡" [[ $(jobs -l | wc -l) -gt 0 ]] && symbols+="%{%F{cyan}%}⚙" - [[ -n "$symbols" ]] && prompt_segment black default "$symbols" + [[ -n "$symbols" ]] && prompt_segment black white "$symbols" } #AWS Profile: