Install bash-completion

bash-completion is a really handy tool which can help you auto-complete many commands, such as git. To use it, you need 2 steps:

(1) Install it:

  1. pkg install bash-completion

(2) Add following command in your ~/.profile:

  1. [[ $PS1 && -f /usr/local/share/bash-completion/bash_completion.sh ]] && \
  2. source /usr/local/share/bash-completion/bash_completion.sh