Add log viewing helper based on svlogtail
This commit is contained in:
		
							parent
							
								
									d119404ae4
								
							
						
					
					
						commit
						f9bc7405a9
					
				
					 3 changed files with 63 additions and 5 deletions
				
			
		
							
								
								
									
										11
									
								
								utils/completion/_svlogs
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										11
									
								
								utils/completion/_svlogs
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,11 @@ | |||
| #compdef svlogs | ||||
| 
 | ||||
| local logs=( ${SVLOGDIR:-$HOME/.local/log}/* ) | ||||
| logs=( ${logs:t} ) | ||||
| local arguments=( | ||||
| 	'-o[show old logs]' | ||||
| 	'--old[show old logs]' | ||||
| 	"::logs:(${logs})" | ||||
| ) | ||||
| 
 | ||||
| _arguments $arguments | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 crater2150
						crater2150