mirror of
				https://github.com/ohmyzsh/ohmyzsh.git
				synced 2025-11-04 13:21:19 +08:00 
			
		
		
		
	Splitting wakeonlan plugin completion into separate file
This commit is contained in:
		
							parent
							
								
									aa7ddd51cc
								
							
						
					
					
						commit
						e94039d62b
					
				
							
								
								
									
										4
									
								
								plugins/wakeonlan/_wake
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										4
									
								
								plugins/wakeonlan/_wake
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,4 @@
 | 
			
		||||
#compdef wake
 | 
			
		||||
#autoload
 | 
			
		||||
 | 
			
		||||
_arguments "1:device to wake:_files -W '$HOME/.wakeonlan'" && return 0
 | 
			
		||||
@ -12,7 +12,3 @@ function wake() {
 | 
			
		||||
 | 
			
		||||
  wakeonlan -f "$config_file"
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
if (( $+functions[compdef] )); then
 | 
			
		||||
  compdef "_arguments '1:device to wake:_files -W '\''$HOME/.wakeonlan'\'''" wake
 | 
			
		||||
fi
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user