mirror of https://gitlab.com/ceda_ei/wish
Add reinit plugin
This commit is contained in:
parent
08530330c1
commit
bbe08b8244
|
@ -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.
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
}
|
Loading…
Reference in New Issue