Skip to content

Instantly share code, notes, and snippets.

@dgb
Created September 13, 2014 20:52
Show Gist options
  • Save dgb/3313651640acf97ecc10 to your computer and use it in GitHub Desktop.
Save dgb/3313651640acf97ecc10 to your computer and use it in GitHub Desktop.
if which rbenv > /dev/null; then eval "$(rbenv init -)"; fi
export CLICOLOR=1
xcode_path="$(xcode-select -p)"
source "$xcode_path/usr/share/git-core/git-completion.bash"
source "$xcode_path/usr/share/git-core/git-prompt.sh"
GIT_PS1_SHOWDIRTYSTATE=true
GIT_PS1_SHOWCOLORHINTS=true
GIT_PS1_UNTRACKEDFILES=true
magenta="$(tput setaf 5)"
cyan="$(tput setaf 6)"
yellow="$(tput setaf 3)"
reset="$(tput sgr0)"
PROMPT_COMMAND='__git_ps1 "\[$yellow\]\u@\[$cyan\]\h:\[$magenta\]\W\[$reset\]" "\\\$ "'
alias server='python -m SimpleHTTPServer'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment