mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-05-08 04:34:00 +02:00
Added SVN suport to agnoster
This commit is contained in:
parent
434f3bc05c
commit
770e680778
1 changed files with 12 additions and 0 deletions
|
|
@ -129,6 +129,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 '%~'
|
||||
|
|
@ -164,6 +175,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