lib/preexec: adobt _bash_it_library_finalize_hook
Schedule modification of `$PROMPT_COMMAND` for after everything has loaded.
This commit is contained in:
@@ -20,8 +20,8 @@ function __bp_require_not_readonly() { :; }
|
|||||||
# Disable trap DEBUG on subshells - https://github.com/Bash-it/bash-it/pull/1040
|
# Disable trap DEBUG on subshells - https://github.com/Bash-it/bash-it/pull/1040
|
||||||
__bp_enable_subshells= # blank
|
__bp_enable_subshells= # blank
|
||||||
|
|
||||||
# Modify `$PROMPT_COMMAND` now
|
# Modify `$PROMPT_COMMAND` in finalize hook
|
||||||
__bp_install_after_session_init
|
_bash_it_library_finalize_hook+=('__bp_install_after_session_init')
|
||||||
|
|
||||||
## Helper functions
|
## Helper functions
|
||||||
function __check_precmd_conflict() {
|
function __check_precmd_conflict() {
|
||||||
|
|||||||
Reference in New Issue
Block a user