1
0
Fork 0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2024-10-16 19:50:09 +00:00

Compare commits

...

2 commits

Author SHA1 Message Date
Adrien Plazas
827a086b37
Merge a0fd4f4fec into 1514145a09 2024-09-20 15:08:08 +02:00
Adrien Plazas
a0fd4f4fec fix(agnoster): print white text for black segments
This makes them readable in light terminals too and not only dark ones.
2024-06-25 14:15:13 +02:00

View file

@ -89,7 +89,7 @@ prompt_end() {
# Context: user@hostname (who am I and where am I) # Context: user@hostname (who am I and where am I)
prompt_context() { prompt_context() {
if [[ "$USERNAME" != "$DEFAULT_USER" || -n "$SSH_CLIENT" ]]; then 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 fi
} }
@ -238,7 +238,7 @@ prompt_status() {
[[ $UID -eq 0 ]] && symbols+="%{%F{yellow}%}⚡" [[ $UID -eq 0 ]] && symbols+="%{%F{yellow}%}⚡"
[[ $(jobs -l | wc -l) -gt 0 ]] && symbols+="%{%F{cyan}%}⚙" [[ $(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: #AWS Profile: