Add better bash completion support
Now it is easy to add new completion scripts: just drop them in the bash_completion.d directory. Signed-off-by: Jacob Kiers <kiers@comandi.nl>
This commit is contained in:
		
							
								
								
									
										1
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										1
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							| @@ -1,3 +1,4 @@ | ||||
| *.cache | ||||
| sublime/User/Package Control.last-run | ||||
| sublime/User/Package Control.system-ca-bundle | ||||
| bash_completion.d | ||||
|   | ||||
							
								
								
									
										0
									
								
								bash_completion.d/.gitkeep
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										0
									
								
								bash_completion.d/.gitkeep
									
									
									
									
									
										Normal file
									
								
							| @@ -16,3 +16,11 @@ complete -F _tmux t | ||||
|  | ||||
| # Add Gush completion. | ||||
| [ -f $HOME/.gush/.gush-autocomplete.bash ] && source $HOME/.gush/.gush-autocomplete.bash | ||||
|  | ||||
| if [ -d $HOME/dotfiles/bash_completion.d ]; | ||||
| then | ||||
|     for file in `find $HOME/dotfiles/bash_completion.d/ -type f -name '*.sh'` | ||||
|     do | ||||
|         source $file | ||||
|     done | ||||
| fi | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Jacob Kiers
					Jacob Kiers