More Readable Colors for Prompt

This commit is contained in:
imjoseangel 2017-08-05 09:42:02 +02:00
commit 11a1c99329

View file

@ -80,7 +80,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 [[ "$USER" != "$DEFAULT_USER" || -n "$SSH_CLIENT" ]]; then if [[ "$USER" != "$DEFAULT_USER" || -n "$SSH_CLIENT" ]]; then
prompt_segment black default "%(!.%{%F{yellow}%}.)$USER@%m" prompt_segment magenta default "%(!.%{%F{yellow}%}.)$USER@%m"
fi fi
} }
@ -187,7 +187,7 @@ prompt_hg() {
# Dir: current working directory # Dir: current working directory
prompt_dir() { prompt_dir() {
prompt_segment blue black '%~' prompt_segment blue defatul '%~'
} }
# Virtualenv: current working virtualenv # Virtualenv: current working virtualenv