Skip to content

Commit a939196

Browse files
committed
lib/preexec: adobt _bash_it_library_finalize_hook
Schedule modification of `$PROMPT_COMMAND` for after everything has loaded.
1 parent 6b08284 commit a939196

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/preexec.bash

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ function __bp_require_not_readonly() { :; }
2020
# Disable trap DEBUG on subshells - https://github.com/Bash-it/bash-it/pull/1040
2121
__bp_enable_subshells= # blank
2222

23-
# Modify `$PROMPT_COMMAND` now
24-
__bp_install_after_session_init
23+
# Modify `$PROMPT_COMMAND` in finalize hook
24+
_bash_it_library_finalize_hook+=('__bp_install_after_session_init')
2525

2626
## Helper functions
2727
function __check_precmd_conflict() {

0 commit comments

Comments
 (0)