From bbe08b82447cc52196926d84aaeaab70c27186a1 Mon Sep 17 00:00:00 2001 From: Ceda EI Date: Sat, 9 Dec 2023 16:59:53 +0530 Subject: [PATCH] Add reinit plugin --- docs/plugins/reinit.md | 18 ++++++++++++++++++ mkdocs.yml | 1 + plugins/reinit.sh | 15 +++++++++++++++ 3 files changed, 34 insertions(+) create mode 100644 docs/plugins/reinit.md create mode 100644 plugins/reinit.sh 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 +}