Skip to content

Instantly share code, notes, and snippets.

@bchartoff
Created January 29, 2015 16:16
Show Gist options
  • Save bchartoff/985454b16743b9de680f to your computer and use it in GitHub Desktop.
Save bchartoff/985454b16743b9de680f to your computer and use it in GitHub Desktop.
My .bash_profile
#aliases
alias ll="ls -lha"
alias h=history
alias hg="history | grep"
alias ..="cd .."
#Path
export PATH=/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/local/git/bin:/bin:/usr/sbin:/sbin:~/bin
#Sublime
export EDITOR='sublime -w'
#virtualenvs
export WORKON_HOME=~/Envs
source /usr/local/bin/virtualenvwrapper.sh
#prompt
parse_git_branch() {
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/'
}
PS1='\[\033[01;32m\]\u@\[\033[01;36m\]\W\[\033[01;33m\]$(parse_git_branch)\[\033[01;34m\] \$\[\033[00m\] '
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment