mirror of
				https://github.com/ohmyzsh/ohmyzsh.git
				synced 2024-05-11 05:55:17 +00:00 
			
		
		
		
	Added gitignore plugin ( for gitignore.io )
This commit is contained in:
		
							
								
								
									
										11
									
								
								custom/plugins/gitignore/gitignore.plugin.zsh
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										11
									
								
								custom/plugins/gitignore/gitignore.plugin.zsh
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,11 @@
 | 
				
			|||||||
 | 
					function gi() { curl http://gitignore.io/api/$@ ;}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					_gitignireio_get_command_list() {
 | 
				
			||||||
 | 
					  curl -s http://gitignore.io/api/list | tr "," "\n"
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					_gitignireio () {
 | 
				
			||||||
 | 
					  compadd `_gitignireio_get_command_list`
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					compdef _gitignireio gi
 | 
				
			||||||
		Reference in New Issue
	
	Block a user