-
Notifications
You must be signed in to change notification settings - Fork 95
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #26 from rcaloras/subshell-exit
Add option to disable subshells to help with #25
- Loading branch information
Showing
1 changed file
with
12 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,7 +11,7 @@ | |
# Author: Ryan Caloras ([email protected]) | ||
# Forked from Original Author: Glyph Lefkowitz | ||
# | ||
# V0.3.0 | ||
# V0.3.1 | ||
# | ||
|
||
# General Usage: | ||
|
@@ -234,9 +234,17 @@ __bp_install() { | |
# Adjust our HISTCONTROL Variable if needed. | ||
__bp_adjust_histcontrol | ||
|
||
# Set so debug trap will work be invoked in subshells. | ||
set -o functrace > /dev/null 2>&1 | ||
shopt -s extdebug > /dev/null 2>&1 | ||
|
||
# Issue #25. Setting debug trap for subshells causes sessions to exit for | ||
# backgrounded subshell commands (e.g. (pwd)& ). Believe this is a bug in Bash. | ||
# | ||
# Disabling this by default. It can be enabled by setting this variable. | ||
if [[ -n "$__bp_enable_subshells" ]]; then | ||
|
||
# Set so debug trap will work be invoked in subshells. | ||
set -o functrace > /dev/null 2>&1 | ||
shopt -s extdebug > /dev/null 2>&1 | ||
fi; | ||
|
||
|
||
local existing_prompt_command | ||
|