Skip to content

Instantly share code, notes, and snippets.

@phawk
Created October 3, 2011 16:01
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 phawk/1259458 to your computer and use it in GitHub Desktop.
Save phawk/1259458 to your computer and use it in GitHub Desktop.
# custom prompt
# pman, open man in preview
pman() { man -t "$@" | open -f -a Preview; }
# aliases
alias planzaivps="ssh -p 1892 batman@planzai.com"
# open files in coda
alias coda="open -a Coda"
# Set git autocompletion and PS1 integration
if [ -f /usr/local/Cellar/git/1.7.4.4/etc/bash_completion.d/git-completion.bash ]; then
. /usr/local/Cellar/git/1.7.4.4/etc/bash_completion.d/git-completion.bash
fi
GIT_PS1_SHOWDIRTYSTATE=true
if [ -f /opt/local/etc/bash_completion ]; then
. /opt/local/etc/bash_completion
fi
PS1='\[\033[0;31m\]\u\[\033[0;36m\] \w\[\033[37m\]$(__git_ps1)\[\033[00m\]\$ '
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment