bash-completion
Bash Command for Developer
Bash Completion
Bash completion is a bash function that allows you to auto complete commands or arguments by typing partially commands or arguments, then pressing the [Tab] key. This will help you when writing the bash command in terminal.
Installation
Bash completion will be installed in /usr/local/etc/bash_completion.d. For it to work, add this to your ~/.bash_profile:
Restart your bash session:
More
You can list additional completion packages are available by typing:
And you can install them using brew install commands, for example:
You can also manually add a bash completion file into /usr/local/etc/bash_completion.d