Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Create an array
_bash_it_library_finalize_hook
and loop at the end of the mainbash_it.sh
to run each element in the array.Motivation and Context
The purpose here is to run some command after everything else has been loaded. For example,
lib/theme
checks for executables for SCM commands, but$PATH
may be altered afterlib/theme
has loaded and therefore some available commands may never be discovered. To accommodate this problem, create_bash_it_appearance_scm_init()
and add it to the hook. It will re-check at end ofbash_it.sh
just before prompt is first displayed.How Has This Been Tested?
This has been part of my main branch for months and all tests pass.
Types of changes
Checklist:
clean_files.txt
and formatted it usinglint_clean_files.sh
.