mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-02-13 03:01:32 +01:00
update avlux them to show svn dirty status of current directory, as well as entire working copy.
This commit is contained in:
parent
f0fe25df1b
commit
674a7e34ad
1 changed files with 5 additions and 3 deletions
|
|
@ -36,11 +36,11 @@ local user_host='${PR_USER}${PR_CYAN}@${PR_HOST}'
|
|||
local current_dir='%{$PR_BOLD$PR_GREEN%}%~%{$reset_color%}'
|
||||
local rvm_ruby=''
|
||||
if which rvm-prompt &> /dev/null; then
|
||||
rvm_ruby='%{$PR_RED%}<$(rvm-prompt i v g s)>%{$reset_color%}'
|
||||
rvm_ruby='%{$fg[red]%}<$(rvm-prompt i v g s)>%{$reset_color%}'
|
||||
elif which rbenv &> /dev/null; then
|
||||
rvm_ruby='%{$PR_RED%}<$(rbenv version | sed -e "s/ (set.*$//")>%{$reset_color%}'
|
||||
rvm_ruby='%{$fg[red]%}<$(rbenv version | sed -e "s/ (set.*$//")>%{$reset_color%}'
|
||||
else
|
||||
rvm_ruby='%{$PR_RED%}<$(ruby -v | sed -e "s/ (.*$//")>%{$reset_color%}'
|
||||
rvm_ruby='%{$fg[red]%}<$(ruby -v | sed -e "s/ (.*$//")>%{$reset_color%}'
|
||||
fi
|
||||
|
||||
local git_branch='$(git_prompt_info)%{$reset_color%}'
|
||||
|
|
@ -67,4 +67,6 @@ ZSH_THEME_SVN_PROMPT_PREFIX="%{$fg[yellow]%}svn:"
|
|||
ZSH_THEME_SVN_PROMPT_SUFFIX="%{$reset_color%}"
|
||||
ZSH_THEME_SVN_PROMPT_DIRTY="-%{$fg[red]%}x%{$reset_color%}"
|
||||
ZSH_THEME_SVN_PROMPT_CLEAN="-%{$fg[green]%}o%{$reset_color%}"
|
||||
ZSH_THEME_SVN_PROMPT_DIRTY_PWD="%{$fg[red]%}x%{$reset_color%}"
|
||||
ZSH_THEME_SVN_PROMPT_CLEAN_PWD="%{$fg[green]%}o%{$reset_color%}"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue