From dc79ff446655559728b16dbf98a1f90037225863 Mon Sep 17 00:00:00 2001 From: Armin Jenewein Date: Wed, 18 Mar 2015 13:11:11 +0100 Subject: [PATCH] fix: prompt_context (foreground), changes to box theme --- lib/powerline/box | 8 ++++++-- themes/powerline-with-hostname.zsh-theme | 4 ++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/lib/powerline/box b/lib/powerline/box index 92840a0ed..9805db10d 100644 --- a/lib/powerline/box +++ b/lib/powerline/box @@ -1,10 +1,14 @@ # use $HOME/.zsh/256-color-test.py to test colors. +echo true + # user colors prompt_context_user_fg="252" prompt_context_user_bg="240" # root colors -prompt_context_root_fg="152" -prompt_context_root_bg="32" +prompt_context_root_fg="172" +prompt_context_root_bg="52" + + diff --git a/themes/powerline-with-hostname.zsh-theme b/themes/powerline-with-hostname.zsh-theme index 41574afc3..fbcce1c66 100644 --- a/themes/powerline-with-hostname.zsh-theme +++ b/themes/powerline-with-hostname.zsh-theme @@ -83,10 +83,10 @@ prompt_context() { local machine="$(hostname -s)" if [[ "$user" == "root" ]]; then # prompt for root - prompt_segment "$prompt_context_root_bg" "$prompt_context_root_fg" "%(!.%{%F{red}%}.)$user@$machine" + prompt_segment "$prompt_context_root_bg" "$prompt_context_root_fg" "%(!.%{%F{${prompt_context_root_fg}}%}.)$user@$machine" else # prompt for normal user - prompt_segment "$prompt_context_user_bg" "$prompt_context_user_fg" "%(!.%{%F{yellow}%}.)$user@$machine" + prompt_segment "$prompt_context_user_bg" "$prompt_context_user_fg" "%(!.%{%F{${prompt_context_user_fg}}%}.)$user@$machine" fi }