mirror of
				https://gitlab.com/ceda_ei/wish
				synced 2025-10-31 04:20:05 +01:00 
			
		
		
		
	Add reinit plugin
This commit is contained in:
		
							
								
								
									
										18
									
								
								docs/plugins/reinit.md
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										18
									
								
								docs/plugins/reinit.md
									
									
									
									
									
										Normal 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. | ||||||
| @@ -25,6 +25,7 @@ nav: | |||||||
|     - plugins/path.md |     - plugins/path.md | ||||||
|     - plugins/path_powerline.md |     - plugins/path_powerline.md | ||||||
|     - plugins/pythonvenv.md |     - plugins/pythonvenv.md | ||||||
|  |     - plugins/reinit.md | ||||||
|     - plugins/space.md |     - plugins/space.md | ||||||
|     - plugins/tmux.md |     - plugins/tmux.md | ||||||
|     - plugins/username.md |     - plugins/username.md | ||||||
|   | |||||||
							
								
								
									
										15
									
								
								plugins/reinit.sh
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										15
									
								
								plugins/reinit.sh
									
									
									
									
									
										Normal 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 | ||||||
|  | } | ||||||
		Reference in New Issue
	
	Block a user