Skip to content

Commit

Permalink
[Fix sorin-ionescu#230] Check the expanded command in steeef preexec
Browse files Browse the repository at this point in the history
  • Loading branch information
sorin-ionescu committed Aug 6, 2012
1 parent 58a0139 commit 4700ffb
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions modules/prompt/functions/prompt_steeef_setup
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,9 @@ function prompt_steeef_precmd {
}

function prompt_steeef_preexec {
case "$(history $HISTCMD)" in
(*git*)
__PROMPT_STEEEF_VCS_UPDATE=1
;;
(*svn*)
__PROMPT_STEEEF_VCS_UPDATE=1
;;
esac
if [[ "${2[(w)1]}" == (git|svn) ]]; then
__PROMPT_STEEEF_VCS_UPDATE=1
fi
}

function prompt_steeef_chpwd {
Expand Down

0 comments on commit 4700ffb

Please sign in to comment.