I don't understand why bash completion is loaded so slow on my MacBook Pro.
I did the following in my ~/.bash_profile:
echo "Loading BashCompletion..."
if [ -f /opt/local/etc/bash_completion ]; then
. /opt/local/etc/bash_completion
fi
echo "BashCompletion loaded."
the execution time for bash_completion typically is > 2 seconds.
I find that really annoying when I am working on the terminal which requires me to constantly open new tabs.
Is there a way I can cache this or something?
(Note I am using iTerm2 and this is equally slow on the original terminal in Mac as well).