mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-04-24 04:29:25 +02:00
update context
This commit is contained in:
parent
2d4822a05f
commit
4f40c9bc98
1 changed files with 1 additions and 7 deletions
|
|
@ -129,18 +129,12 @@ prompt_ciacho_context() {
|
|||
if [[ $(whoami) == root ]]; then
|
||||
# red @ cyan
|
||||
uid_color=red
|
||||
host_color=white
|
||||
elif [[ $(uname) == Darwin ]]; then
|
||||
uid_color=cyan
|
||||
host_color=cyan
|
||||
elif [[ $(uname) == Darwin && $(whoami) == root ]]; then
|
||||
uid_color=red
|
||||
host_color=cyan
|
||||
else
|
||||
uid_color=white
|
||||
host_color=white
|
||||
fi
|
||||
prompt_segment black default "%(!.%{%F{$uid_color}%}.)$USER%(!.%{%F{white}%}.)@%(!.%{%F{$host_color}%}.)%m"
|
||||
prompt_segment black $uid_color "$USER@%m"
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue