Last active
March 15, 2017 12:51
-
-
Save dan/5c98c450c6905088050ab8ec4df716f1 to your computer and use it in GitHub Desktop.
My current .bash_profile with rbenv, homebrew, and git integration.
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
export CLICOLOR=1 | |
export LSCOLORS=GxFxCxDxBxegedabagaced | |
alias ls="ls -GFh" | |
alias be="bundle exec" | |
export PATH=/usr/local/bin:/usr/local/heroku/bin:$HOME/.rbenv/bin:$PATH | |
eval "$(rbenv init -)" | |
if [ -f $(brew --prefix)/etc/bash_completion ]; then | |
. $(brew --prefix)/etc/bash_completion | |
fi | |
export PS1='\[\e[01;30m\]\t`if [ $? = 0 ]; then echo "\[\e[32m\] ✔ "; else echo "\[\e[31m\] ✘ "; fi`\[\e[00;37m\]\u\[\e[01;37m\]:`[[ $(git status 2> /dev/null) =~ Changes\ to\ be\ committed: ]] && echo "\[\e[33m\]" || echo "\[\e[31m\]"``[[ ! $(git status 2> /dev/null) =~ nothing\ to\ commit,\ working\ .+\ clean ]] || echo "\[\e[32m\]"`$(__git_ps1 "(%s)\[\e[00m\]")\[\e[01;34m\]\w\[\e[00m\]\$ ' | |
# Git prompt features (read ~/.git-prompt.sh for reference) | |
export GIT_PS1_SHOWDIRTYSTATE="true" | |
export GIT_PS1_SHOWSTASHSTATE="true" | |
export GIT_PS1_SHOWUNTRACKEDFILES="true" | |
export GIT_PS1_SHOWUPSTREAM="auto" | |
export GIT_PS1_SHOWCOLORHINTS="true" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Wow! Didn't know about this, thanks!