Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create lib finalize hook #2004

Merged
merged 2 commits into from
Jan 18, 2022
Merged

Create lib finalize hook #2004

merged 2 commits into from
Jan 18, 2022

Commits on Jan 9, 2022

  1. Create lib finalize hook

    Create an array `_bash_it_library_finalize_hook` and loop at the end of the main `bash_it.sh` to run each element in the array.
    
    The purpose here is to run some command after everything else has been loaded. For example, the appearance lib checks for executables for SCM commands, but `$PATH` may be altered after appearance has loaded and therefore some available commands may never be discovered. Therefore, create `_bash_it_appearance_scm_init()` and add it to the hook. It will re-check at end of `bash_it.sh` just before prompt is first displayed.
    gaelicWizard committed Jan 9, 2022
    Configuration menu
    Copy the full SHA
    bdaf29f View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    dc45958 View commit details
    Browse the repository at this point in the history