mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2025-12-26 02:12:33 +01:00
changing colors of vcs info
This commit is contained in:
parent
9c82fa5a36
commit
c10c31af1e
1 changed files with 4 additions and 4 deletions
|
|
@ -39,7 +39,7 @@ function svn_repository() {
|
|||
local -a regex
|
||||
svn_info=$(svn info)
|
||||
if [[ ${svn_info} =~ "Repository Root: \S+/(\S+)" ]]; then
|
||||
echo "%{$fg[blue]%}(svn:$match)%{$reset_color%}"
|
||||
echo "%{$fg[yellow]%}(svn:$match)%{$reset_color%}"
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
|
@ -95,10 +95,10 @@ PROMPT='${exit_code}%{$fg[cyan]%}[${user_host} %{$fg[yellow]%}$(current_dir)%{$f
|
|||
MODE_INDICATOR="%{$fg_bold[yellow]%}<CMD>%{$reset_color%}"
|
||||
|
||||
# Setup git prompt info
|
||||
ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg[blue]%}(git:"
|
||||
ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg[yellow]%}(git:"
|
||||
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%} "
|
||||
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[blue]%})%{$fg[red]%}!%{$reset_color%}"
|
||||
ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg[blue]%})"
|
||||
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[yellow]%})%{$fg[red]%}!%{$reset_color%}"
|
||||
ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg[yellow]%})"
|
||||
|
||||
# setup right prompt
|
||||
RPROMPT='$(svn_repository)$(git_prompt_info)$(vi_mode_prompt_info)'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue