Use whence -c to expand shell functions as well

This commit is contained in:
Sean Abraham 2017-10-17 00:12:39 -07:00
parent f80e68e8ef
commit f996fcd823

View File

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