From a93919625ddb0f46d835ac6e0b272e1ee68d65aa Mon Sep 17 00:00:00 2001 From: John D Pell Date: Fri, 28 Jan 2022 11:52:59 -0800 Subject: [PATCH] lib/preexec: adobt `_bash_it_library_finalize_hook` Schedule modification of `$PROMPT_COMMAND` for after everything has loaded. --- lib/preexec.bash | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/preexec.bash b/lib/preexec.bash index db54a600..d1367d0b 100644 --- a/lib/preexec.bash +++ b/lib/preexec.bash @@ -20,8 +20,8 @@ function __bp_require_not_readonly() { :; } # Disable trap DEBUG on subshells - https://github.com/Bash-it/bash-it/pull/1040 __bp_enable_subshells= # blank -# Modify `$PROMPT_COMMAND` now -__bp_install_after_session_init +# Modify `$PROMPT_COMMAND` in finalize hook +_bash_it_library_finalize_hook+=('__bp_install_after_session_init') ## Helper functions function __check_precmd_conflict() {