summaryrefslogtreecommitdiffstats
path: root/.zsh/functions
diff options
context:
space:
mode:
authorGravatar Tom Willemsen2012-01-06 16:05:28 +0100
committerGravatar Tom Willemsen2012-01-06 16:05:28 +0100
commitd9c3c8c173217779fa1d3dc48f8e39ba4fded420 (patch)
tree8e28dbca5d149d88d9112e4b5003cd15e784289e /.zsh/functions
parentc3d398b1f09254157d060b563f7dfa2811acf3a3 (diff)
downloaddotfiles-d9c3c8c173217779fa1d3dc48f8e39ba4fded420.tar.gz
dotfiles-d9c3c8c173217779fa1d3dc48f8e39ba4fded420.zip
ZSH: preexec gives more than just program name
Diffstat (limited to '.zsh/functions')
-rw-r--r--.zsh/functions/preexec_update_vars5
1 files changed, 3 insertions, 2 deletions
diff --git a/.zsh/functions/preexec_update_vars b/.zsh/functions/preexec_update_vars
index 70f3d68..2520798 100644
--- a/.zsh/functions/preexec_update_vars
+++ b/.zsh/functions/preexec_update_vars
@@ -1,12 +1,13 @@
# -*- mode: shell-script -*-
+
case "$1" in
git*)
__EXECUTED_GIT_COMMAND=1
;;
- cower)
+ cower*)
__EXECUTED_COWER_COMMAND=1
;;
- pacman)
+ pacman*)
__EXECUTED_PACMAN_COMMAND=1
;;
esac