mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2025-12-26 02:12:33 +01:00
Added color changing to @ as well
This commit is contained in:
parent
dd26c00db3
commit
69c1fef677
1 changed files with 2 additions and 1 deletions
|
|
@ -1,10 +1,11 @@
|
||||||
if [ "$(whoami)" = "root" ]; then NCOLOR="red"; else NCOLOR="white"; fi
|
if [ "$(whoami)" = "root" ]; then NCOLOR="red"; else NCOLOR="white"; fi
|
||||||
|
|
||||||
if [[ -z $BASIC_COLOR ]]; then SHELL_COLOR="white"; else SHELL_COLOR=$BASIC_COLOR ; fi
|
if [[ -z $BASIC_COLOR ]]; then SHELL_COLOR="white"; else SHELL_COLOR=$BASIC_COLOR ; fi
|
||||||
|
if [[ -z $BASIC_COLOR ]]; then AT_COLOR="blue"; else AT_COLOR=$BASIC_COLOR ; fi
|
||||||
|
|
||||||
|
|
||||||
PROMPT='%{$fg[white]%}%B%c%b%{$reset_color%}$(git_prompt_info)%{$fg_bold[$SHELL_COLOR]%} %(!.#.$) '
|
PROMPT='%{$fg[white]%}%B%c%b%{$reset_color%}$(git_prompt_info)%{$fg_bold[$SHELL_COLOR]%} %(!.#.$) '
|
||||||
RPROMPT='%{$fg_bold[$NCOLOR]%}%n%{$fg_bold[blue]%}@%{$fg_bold[white]%}%m %{$fg_bold[white]%}%*%{$reset_color%}'
|
RPROMPT='%{$fg_bold[$NCOLOR]%}%n%{$fg_bold[$AT_COLOR]%}@%{$fg_bold[white]%}%m %{$fg_bold[white]%}%*%{$reset_color%}'
|
||||||
|
|
||||||
|
|
||||||
# git theming
|
# git theming
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue