mirror of
				git://git.code.sf.net/p/zsh/code
				synced 2025-10-25 17:20:25 +02:00 
			
		
		
		
	13899: OSTYPE checking
This commit is contained in:
		
							parent
							
								
									da0179bfb2
								
							
						
					
					
						commit
						ec01fb14b4
					
				
					 2 changed files with 7 additions and 6 deletions
				
			
		|  | @ -1,9 +1,6 @@ | |||
| #compdef apm | ||||
| 
 | ||||
| # this needs intelligence | ||||
| local kludge=linux | ||||
| 
 | ||||
| if [[ $kludge == "linux" ]] | ||||
| if [[ $OSTYPE == linux* ]] | ||||
| then | ||||
| 
 | ||||
| _arguments -C -s \ | ||||
|  | @ -22,7 +19,7 @@ _arguments -C -s \ | |||
|     '(--ignore)-i[tell the system to ignore system-generated APM message]' \ | ||||
|     '(-i)--ignore[tell the system to ignore system-generated APM message]' | ||||
| 
 | ||||
| elif [[ $kludge == "freebsd4.1" ]] | ||||
| elif [[ $OSTYPE == freebsd* ]] | ||||
| then | ||||
| 
 | ||||
| _arguments -C \ | ||||
|  | @ -38,7 +35,7 @@ _arguments -C \ | |||
|      '-Z[transition system into standby mode]' \ | ||||
|      '-z[suspend the system]' | ||||
| 
 | ||||
| elif [[ $kludge == "openbsd2.7" ]] | ||||
| elif [[ $OSTYPE == openbsd* ]] | ||||
| then | ||||
| 
 | ||||
| _arguments -C \ | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue