Skip to content

Instantly share code, notes, and snippets.

@amercier
Last active August 29, 2015 14:15
Show Gist options
  • Save amercier/3ba0a14fbafb7e2067b4 to your computer and use it in GitHub Desktop.
Save amercier/3ba0a14fbafb7e2067b4 to your computer and use it in GitHub Desktop.
terminal.sh
#!/usr/bin/env bash
# Colors: http://mediadoneright.com/content/ultimate-git-ps1-bash-prompt
export TERM=xterm-color
export GREP_OPTIONS='--color=auto' GREP_COLOR='1;32'
export CLICOLOR=1
export LSCOLORS=GxFxCxDxBxegedabagaced
export COLOR_NC='\e[0m' # No Color
[ -f "$HOME/.bashrc" ] && . "$HOME/.bashrc"
[ -f "$HOME/.bash_aliases" ] && . "$HOME/.bash_aliases"
export GIT_PS1_DESCRIBE_STYLE=branch
export GIT_PS1_SHOWCOLORHINTS=1
export GIT_PS1_SHOWDIRTYSTATE=1
export GIT_PS1_SHOWSTASHSTATE=1
export GIT_PS1_SHOWUNTRACKEDFILES=1
export GIT_PS1_SHOWUPSTREAM="verbose git"
export GIT_PS1_STATESEPARATOR=""
export PROMPT_COMMAND="__git_ps1 '[\u@\h \[\033[1;36m\]\w\[\033[0m\] ' ']\$ ' '%s'"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment