Skip to content

Instantly share code, notes, and snippets.

@roderik
Created June 30, 2010 09:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save roderik/458462 to your computer and use it in GitHub Desktop.
Save roderik/458462 to your computer and use it in GitHub Desktop.
if [ ! -f /opt/local/bin/gist.sh ]; then
/opt/local/bin/curl http://github.com/gmarik/gist.sh/raw/master/gist.sh > gist.sh
mv gist.sh /opt/local/bin/
chmod a+x /opt/local/bin/gist.sh
fi
port install bash-completion git-core
echo '
if [ -f /opt/local/etc/bash_completion ]; then
. /opt/local/etc/bash_completion
fi' >> /etc/bashrc
/opt/local/bin/gist.sh -f git-completion.bash 446778
mv git-completion.bash /opt/local/etc/bash_completion.d/git-completion.bash
chmod a+x /opt/local/etc/bash_completion.d/git-completion.bash
source /etc/bashrc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment