Install
sudo port install bash-completion
bashrc
# bash-completion if [ -f /opt/local/etc/bash_completion ]; then . /opt/local/etc/bash_completion fi
Install +bash_completion variant
mercurial
sudo port install mercurial +bash_completion
git
sudo port install git-core +bash_completion