Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Color command prompt (git aware)
export PS1='$(tput dim)\t $(tput setaf 5)[\w]$(tput setaf 2)$(__git_ps1 "(%s)")$(tput sgr0)\$ '
@jesperronn

This comment has been minimized.

Copy link
Owner Author

@jesperronn jesperronn commented Oct 29, 2014

I keep my prompt as simple as possible. I like simple. So I don't want to do all sorts of magic git parsing to figure out remote changes, etc. Screenshot:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.