Skip to content

Instantly share code, notes, and snippets.

@arvindang
Created February 17, 2014 15:50
Show Gist options
  • Save arvindang/9053039 to your computer and use it in GitHub Desktop.
Save arvindang/9053039 to your computer and use it in GitHub Desktop.
Bash Profile
function reload {
source ~/.bash_profile
}
function parse_git_dirty {
[[ $(git status 2> /dev/null | tail -n1) != "nothing to commit (working directory clean)" ]] && echo " *"
}
function parse_git_branch {
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/'
}
alias projects='cd /Users/arvindang/Dropbox/projects/'
alias tsl='cd /Users/arvindang/Dropbox/projects/tsl'
alias be='bundle exec'
export PATH=$PATH:/Applications/Sublime.app/Contents/SharedSupport/bin/
export PATH="$HOME/.rbenv/bin:$PATH"
eval "$(rbenv init -)"
PATH=/usr/local/bin:$PATH
export CLICOLOR=1
export LSCOLORS=GxFxCxDxBxegedabagaced
export EDITOR="subl"
export PS1="\W\[\033[32m\]\$(parse_git_branch)\[\033[00m\] $ "
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment