mirror of
				git://git.code.sf.net/p/zsh/code
				synced 2025-10-30 17:50:58 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			15 lines
		
	
	
	
		
			344 B
		
	
	
	
		
			Text
		
	
	
	
	
	
			
		
		
	
	
			15 lines
		
	
	
	
		
			344 B
		
	
	
	
		
			Text
		
	
	
	
	
	
| #function - nohup nice eval time rusage noglob nocorrect exec
 | |
| 
 | |
| # We just change the special completion parameters, to make the first
 | |
| # argument be treated as the command name and removing it from the 
 | |
| # positional parameters.
 | |
| 
 | |
| COMMAND="$1"
 | |
| shift
 | |
| (( CURRENT-- ))
 | |
| if [[ CURRENT -eq 0 ]]; then
 | |
|   CONTEXT=command
 | |
| else
 | |
|   CONTEXT=argument
 | |
| fi
 | |
| compsub
 |