diff --git a/docs/plugins/reinit.md b/docs/plugins/reinit.md new file mode 100644 index 0000000..f2b3fe7 --- /dev/null +++ b/docs/plugins/reinit.md @@ -0,0 +1,18 @@ +# Re-Init + +Re-initialize wish from config every time the prompt is redrawn. This plugin is +primarily intended for playing around with config and should ideally be removed +after that. + +> Note: Add this plugin as the first plugin in `left` prompt. + +## Add to wish + +```ini +[plugin] +name = reinit +``` + +## Config options + +No plugin specific config options are available. diff --git a/mkdocs.yml b/mkdocs.yml index 646df8c..93aa961 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -25,6 +25,7 @@ nav: - plugins/path.md - plugins/path_powerline.md - plugins/pythonvenv.md + - plugins/reinit.md - plugins/space.md - plugins/tmux.md - plugins/username.md diff --git a/plugins/reinit.sh b/plugins/reinit.sh new file mode 100644 index 0000000..9695ece --- /dev/null +++ b/plugins/reinit.sh @@ -0,0 +1,15 @@ +function wish_reinit_start() { + return 1 +} + +function wish_reinit_end() { + return 1 +} + +function wish_reinit_set_colors() { + return +} + +function wish_reinit_main() { + wish_init +}