mirror of
				git://git.code.sf.net/p/zsh/code
				synced 2025-10-31 18:10:56 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			14 lines
		
	
	
	
		
			380 B
		
	
	
	
		
			Text
		
	
	
	
	
	
			
		
		
	
	
			14 lines
		
	
	
	
		
			380 B
		
	
	
	
		
			Text
		
	
	
	
	
	
| #compdef npm
 | |
| 
 | |
| # Node Package Manager completion, letting npm do all the completion work
 | |
| 
 | |
| if (( $+commands[npm] )); then
 | |
|   eval "$(NPM_CONFIG_UPDATE_NOTIFIER=false npm completion)"
 | |
|   # Monkey-patch their function to prevent update checks
 | |
|   functions[_npm_completion]="
 | |
|     local -x NPM_CONFIG_UPDATE_NOTIFIER=false;
 | |
|     ${functions[_npm_completion]}
 | |
|   "
 | |
| 
 | |
|   _npm_completion "$@"
 | |
| fi
 |