ZSH: preexec gives more than just program name

This commit is contained in:
Tom Willemsen 2012-01-06 16:05:28 +01:00
parent c3d398b1f0
commit d9c3c8c173

View file

@ -1,12 +1,13 @@
# -*- mode: shell-script -*- # -*- mode: shell-script -*-
case "$1" in case "$1" in
git*) git*)
__EXECUTED_GIT_COMMAND=1 __EXECUTED_GIT_COMMAND=1
;; ;;
cower) cower*)
__EXECUTED_COWER_COMMAND=1 __EXECUTED_COWER_COMMAND=1
;; ;;
pacman) pacman*)
__EXECUTED_PACMAN_COMMAND=1 __EXECUTED_PACMAN_COMMAND=1
;; ;;
esac esac