mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-01-02 02:19:06 +01:00
Add auto-execution functions
This commit is contained in:
parent
6e69c4d002
commit
3c002d899c
1 changed files with 4 additions and 0 deletions
|
|
@ -63,6 +63,10 @@ function update_current_hg_vars(){
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
typeset -ga preexec_functions
|
||||||
|
typeset -ga precmd_functions
|
||||||
|
typeset -ga chpwd_functions
|
||||||
|
|
||||||
preexec_functions+='preexec_update_hg_vars'
|
preexec_functions+='preexec_update_hg_vars'
|
||||||
precmd_functions+='precmd_update_hg_vars'
|
precmd_functions+='precmd_update_hg_vars'
|
||||||
chpwd_functions+='chpwd_update_hg_vars'
|
chpwd_functions+='chpwd_update_hg_vars'
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue