Ver Fonte

using_oh_my_zsh: change git dirty color to blue, user to normal

Weiyi Lou há 13 anos atrás
pai
commit
96db2958c8
1 ficheiros alterados com 3 adições e 2 exclusões
  1. 3 2
      zsh/oh-my-zsh-customs/cinaeco.zsh-theme

+ 3 - 2
zsh/oh-my-zsh-customs/cinaeco.zsh-theme

@@ -47,7 +47,7 @@ git_prompt_status() {
 ## characters by too many or too few. The precmd text is just printed text.
 ## characters by too many or too few. The precmd text is just printed text.
 function precmd() {
 function precmd() {
   print -rP '
   print -rP '
-$fg[cyan][%n@%m]  $fg[yellow]%3~  $(git_prompt_info)'
+$fg[cyan][$reset_color%n $fg[cyan]@ %m]  $fg[yellow]%3~  $(git_prompt_info)'
 }
 }
 
 
 PROMPT='%{$fg[magenta]%}→ %{$reset_color%}'
 PROMPT='%{$fg[magenta]%}→ %{$reset_color%}'
@@ -58,7 +58,8 @@ MODE_INDICATOR="%{$fg[green]%}vi-mode%{$reset_color%}"
 ZSH_THEME_GIT_PROMPT_PREFIX="[git:"
 ZSH_THEME_GIT_PROMPT_PREFIX="[git:"
 ZSH_THEME_GIT_PROMPT_SUFFIX="]%{$reset_color%}"
 ZSH_THEME_GIT_PROMPT_SUFFIX="]%{$reset_color%}"
 ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg[green]%}"
 ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg[green]%}"
-ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[red]%}"
+ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[blue]%}"
+
 
 
 ZSH_THEME_GIT_PROMPT_ADDED="%{$FG[082]%}+%{$reset_color%}"
 ZSH_THEME_GIT_PROMPT_ADDED="%{$FG[082]%}+%{$reset_color%}"
 ZSH_THEME_GIT_PROMPT_MODIFIED="%{$FG[160]%}+%{$reset_color%}"
 ZSH_THEME_GIT_PROMPT_MODIFIED="%{$FG[160]%}+%{$reset_color%}"