Skip to content

Commit

Permalink
Fixing up header and adding version tag of V0.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
rcaloras committed Feb 24, 2015
1 parent 417c01b commit 3ea73b1
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions bash-preexec.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,17 @@
# 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.
#
# 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
Expand All @@ -26,18 +30,16 @@
# 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
return 0
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
Expand Down

0 comments on commit 3ea73b1

Please sign in to comment.