Skip to content

Commit

Permalink
finalize: first attempt at documentation?
Browse files Browse the repository at this point in the history
  • Loading branch information
gaelicWizard committed Jan 6, 2022
1 parent 3f0c1bd commit cfec924
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions docs/development.rst
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,11 @@ Plugin Disable Callbacks
Plugins can define a function that will be called when the plugin is being disabled.
The callback name should be ``{PLUGIN_NAME}_on_disable``\ , you can see ``gitstatus`` for usage example.

Library Finalization Callback
-----------------------------

Specifically for Bash-it library code, e.g. in the `lib` subdirectory, a hook is available to run some code at the very end of the main loader script after all other code has been loaded. For example, `lib/theme` uses `_bash_it_library_finalize_hook+=('_bash_it_appearance_scm_init')` to add a function to be called after all plugins have been loaded.

Using the pre-commit hook
-------------------------

Expand Down

0 comments on commit cfec924

Please sign in to comment.