Add reinit plugin

This commit is contained in:
Ceda EI 2023-12-09 16:59:53 +05:30
parent 08530330c1
commit bbe08b8244
3 changed files with 34 additions and 0 deletions

18
docs/plugins/reinit.md Normal file
View File

@ -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.

View File

@ -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

15
plugins/reinit.sh Normal file
View File

@ -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
}