From d9c3c8c173217779fa1d3dc48f8e39ba4fded420 Mon Sep 17 00:00:00 2001 From: Tom Willemsen Date: Fri, 6 Jan 2012 16:05:28 +0100 Subject: [PATCH] ZSH: preexec gives more than just program name --- .zsh/functions/preexec_update_vars | 5 +++-- 1 file 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