mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-01-02 02:19:06 +01:00
~ renamed scm_prompt_info to scm_build_prompt_info
This commit is contained in:
parent
7cec393e4a
commit
e61377ad91
1 changed files with 3 additions and 3 deletions
|
|
@ -55,7 +55,7 @@ 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() {
|
||||
function scm_build_prompt_info() {
|
||||
[ ! $SCM_TYPE ] && return
|
||||
|
||||
SCM_DATA_DIR=$SCM_ROOT/.$SCM_TYPE
|
||||
|
|
@ -71,8 +71,8 @@ function scm_prompt_info() {
|
|||
|
||||
if [[ $DIRSTATE_TIME -gt $LAST_UPDATE_TIME || "$1" == "force" ]]; then
|
||||
_scm_debug "Updating $SCM_PROMPT_CACHE_FILE"
|
||||
touch "$SCM_PROMPT_CACHE_FILE"
|
||||
SCM_PROMPT_INFO=$(scm_prompt_info_for_$SCM_TYPE) # calls scm type specific prompt generator
|
||||
touch "$SCM_PROMPT_CACHE_FILE"
|
||||
fi
|
||||
fi
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue