mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-05-01 04:30:37 +02:00
Merge 770e680778 into 0ebe35968c
This commit is contained in:
commit
c85fbc44ee
1 changed files with 12 additions and 0 deletions
|
|
@ -162,6 +162,17 @@ prompt_hg() {
|
|||
fi
|
||||
}
|
||||
|
||||
prompt_svn() {
|
||||
if in_svn; then
|
||||
if (svn status | grep -Eq '^\s*[ACDIM!?L]'); then
|
||||
prompt_segment yellow black
|
||||
else
|
||||
prompt_segment green black
|
||||
fi
|
||||
echo -n " $(svn_get_rev_nr)"
|
||||
fi
|
||||
}
|
||||
|
||||
# Dir: current working directory
|
||||
prompt_dir() {
|
||||
prompt_segment blue black '%~'
|
||||
|
|
@ -197,6 +208,7 @@ build_prompt() {
|
|||
prompt_context
|
||||
prompt_dir
|
||||
prompt_git
|
||||
prompt_svn
|
||||
prompt_hg
|
||||
prompt_end
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue