mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-03-20 03:13:33 +01:00
new version of powerline-with-hostname theme
This commit is contained in:
parent
6f4a3ea6dc
commit
d4616868e6
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue