OSX Terminal tab-autocomplete

Finally I got the real bash auto-comletion on my iMac iTerm! iEasy as pie!

sudo port install bash-completion
 
To use bash_completion, add the following lines at the end of your .bash_profile:
  if [ -f /opt/local/etc/bash_completion ]; then
      . /opt/local/etc/bash_completion
  fi

That’s it…. have fun