Created
September 12, 2012 19:02
-
-
Save siffring/3709126 to your computer and use it in GitHub Desktop.
.bash_login
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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