Created
February 17, 2014 15:50
-
-
Save arvindang/9053039 to your computer and use it in GitHub Desktop.
Bash Profile
This file contains hidden or 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
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