Skip to content

Instantly share code, notes, and snippets.

@siffring
Created September 12, 2012 19:02
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save siffring/3709126 to your computer and use it in GitHub Desktop.
Save siffring/3709126 to your computer and use it in GitHub Desktop.
.bash_login
# Some goodies for your /Users/[username]/.bash_login file
# Set your search path
PATH=$PATH:/usr/local/bin
export PATH
# Alias for clearing your dns cache
alias dnscacheflush='dscacheutil -flushcache'
# Alias for subl
alias subl="/Applications/Sublime\ Text\ 2.app/Contents/SharedSupport/bin/subl"
# Alias for sublime
alias e="subl -n ."
# Red cursor
PS1='\[\e[01;31m\w \$ \e[00m\]'
# Show the current git branch in the cursor
parse_git_branch() {
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/'
}
PS1='\[\e[01;31m\w \$(parse_git_branch): \e[00m\]'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment