new version of powerline-with-hostname theme

This commit is contained in:
Armin Jenewein 2015-02-22 17:35:02 +01:00
commit d4616868e6

View file

@ -83,10 +83,10 @@ prompt_context() {
local machine="$(hostname -s)" local machine="$(hostname -s)"
if [[ "$user" == "root" ]]; then if [[ "$user" == "root" ]]; then
# prompt for root # 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{red}%}.)$user@$machine"
else else
# prompt for normal user # 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{yellow}%}.)$user@$machine"
fi fi
} }