Skip to content

Instantly share code, notes, and snippets.

@rdubigny
rdubigny / .bashrc
Last active March 27, 2017 12:34
ultimate prompt
# colored prompt with time + user@host + directory + git branch
# more info http://www.git-attitude.fr/2013/05/22/prompt-git-qui-dechire/
export GIT_PS1_SHOWDIRTYSTATE=1 GIT_PS1_SHOWSTASHSTATE=1 GIT_PS1_SHOWUNTRACKEDFILES=1
export GIT_PS1_SHOWUPSTREAM=auto GIT_PS1_DESCRIBE_STYLE=branch
PS1='[\A] \[\e[1;32m\]\u\[\e[1;34m\]@\h:\w\[\e[0m\]$(__git_ps1 " ( \[\e[1;31m\]%s\[\e[0m\] ) ")\$ '
[user]
name = My Name
email = [email protected]
[color]
branch = auto
diff = auto
interactive = auto
status = auto
ui = auto
[core]