mirror of
https://github.com/dcarrillo/prezto.git
synced 2024-12-22 23:08:00 +00:00
[Fix #230] Check the expanded command in steeef preexec
This commit is contained in:
parent
a5f8d04d34
commit
95faf814b5
@ -32,14 +32,9 @@ function prompt_steeef_precmd {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function prompt_steeef_preexec {
|
function prompt_steeef_preexec {
|
||||||
case "$(history $HISTCMD)" in
|
if [[ "${2[(w)1]}" == (git|svn) ]]; then
|
||||||
(*git*)
|
__PROMPT_STEEEF_VCS_UPDATE=1
|
||||||
__PROMPT_STEEEF_VCS_UPDATE=1
|
fi
|
||||||
;;
|
|
||||||
(*svn*)
|
|
||||||
__PROMPT_STEEEF_VCS_UPDATE=1
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function prompt_steeef_chpwd {
|
function prompt_steeef_chpwd {
|
||||||
|
Loading…
Reference in New Issue
Block a user