mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-01-02 02:19:06 +01:00
+ added scm_prompt_info and related scm_prompt_info_for_* functions
This commit is contained in:
parent
0992a4ba59
commit
94ab26139d
1 changed files with 13 additions and 0 deletions
13
lib/scm.zsh
13
lib/scm.zsh
|
|
@ -49,3 +49,16 @@ function scm_prompt_char() {
|
|||
echo $_SCM_PROMPT_CHARS[$SCM_TYPE]
|
||||
}
|
||||
|
||||
|
||||
function scm_prompt_info_for_git() {
|
||||
git_prompt_info
|
||||
}
|
||||
|
||||
function scm_prompt_info_for_hg() {}
|
||||
function scm_prompt_info_for_svn() {}
|
||||
|
||||
function scm_prompt_info() {
|
||||
[ ! $SCM_TYPE ] && return
|
||||
|
||||
scm_prompt_info_for_$SCM_TYPE # calls scm type specific prompt generator
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue