mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-01-02 02:19:06 +01:00
+ added scm_build_prompt_info to precmd_functions hook
This commit is contained in:
parent
e61377ad91
commit
ce4c4354bb
2 changed files with 4 additions and 1 deletions
|
|
@ -27,6 +27,7 @@ function _scm_get_scm_type {
|
||||||
function _scm_reset {
|
function _scm_reset {
|
||||||
unset SCM_ROOT
|
unset SCM_ROOT
|
||||||
unset SCM_TYPE
|
unset SCM_TYPE
|
||||||
|
unset SCM_PROMPT_INFO
|
||||||
}
|
}
|
||||||
|
|
||||||
# Recursive lookup for possible SCM root
|
# Recursive lookup for possible SCM root
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,5 @@
|
||||||
declare -a chpwd_functions
|
declare -a chpwd_functions
|
||||||
|
declare -a precmd_functions
|
||||||
chpwd_functions+='scm_detect_root'
|
chpwd_functions+='scm_detect_root'
|
||||||
|
precmd_functions+='scm_build_prompt_info'
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue