Use $2 (expanded command about to be ran)

This commit is contained in:
Marc Cornellà 2018-04-22 22:35:26 +02:00 committed by GitHub
commit cb29b154be
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -62,7 +62,7 @@ zstyle ':vcs_info:*:prompt:*' nvcsformats ""
function steeef_preexec {
case "$(whence -c $(fc -l $HISTCMD $HISTCMD))" in
case "$2" in
*git*)
PR_GIT_UPDATE=1
;;