From: Richard Hartmann Date: Wed, 18 Jan 2012 02:23:19 +0000 (+0100) Subject: Add hooks for generic command execution X-Git-Url: https://git.madduck.net/code/vcsh.git/commitdiff_plain/bd783af3498a856d27eb0aa616dd09f6b2215fda?ds=sidebyside;hp=-c Add hooks for generic command execution pre-command and post-command will always be executed before and after any command is being executed. This does not affect inner calls. --- bd783af3498a856d27eb0aa616dd09f6b2215fda diff --git a/vcsh b/vcsh index 4732e46..f922cea 100755 --- a/vcsh +++ b/vcsh @@ -283,5 +283,7 @@ done verbose "$VCSH_COMMAND begin" export VCSH_COMMAND=$(echo $VCSH_COMMAND | sed 's/-/_/g') +hook pre-command $VCSH_COMMAND +hook post-command verbose "$VCSH_COMMAND end, exiting"