From 3ea73b13a5bcbc62aa9b228161b6c9867308483d Mon Sep 17 00:00:00 2001 From: Ryan Caloras Date: Mon, 23 Feb 2015 20:36:46 -0500 Subject: [PATCH] Fixing up header and adding version tag of V0.2.0 --- bash-preexec.sh | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/bash-preexec.sh b/bash-preexec.sh index 241f349..f2bd4fe 100644 --- a/bash-preexec.sh +++ b/bash-preexec.sh @@ -3,6 +3,7 @@ # bash-preexec.sh -- Bash support for ZSH-like 'preexec' and 'precmd' functions. # https://github.com/rcaloras/bash-preexec # +# # 'preexec' functions are executed before each interactive command is # executed, with the interactive command as its argument. The 'precmd' # function is executed before each prompt is displayed. @@ -10,6 +11,9 @@ # Author: Ryan Caloras (ryan@bashhub.com) # Forked from Original Author: Glyph Lefkowitz # +# V0.2.0 +# + # General Usage: # # 1. Source this file at the end of your bash profile so as not to interfere @@ -26,10 +30,9 @@ # preexec. (Optional) change anything using PROMPT_COMMAND to now use # precmd instead. # -# Note: This module requires two bash features which you must not otherwise be -# using: the "DEBUG" trap, and the "PROMPT_COMMAND" variable. -# prexec_and_precmd_install will override these and if you override one or -# the other this will most likely break. +# Note: This module requires two bash features which you must not otherwise be +# using: the "DEBUG" trap, and the "PROMPT_COMMAND" variable. prexec_and_precmd_install +# will override these and if you override one or the other this will most likely break. # Avoid duplicate inclusion if [[ "$__bp_imported" == "defined" ]]; then @@ -37,7 +40,6 @@ if [[ "$__bp_imported" == "defined" ]]; then fi __bp_imported="defined" - # This variable describes whether we are currently in "interactive mode"; # i.e. whether this shell has just executed a prompt and is waiting for user # input. It documents whether the current command invoked by the trace hook is