Skip to content

Instantly share code, notes, and snippets.

View mfutselaar's full-sized avatar

Mathijs Futselaar mfutselaar

View GitHub Profile
@mfutselaar
mfutselaar / gist:6bc4807513806824223c9f9eda2a67dc
Last active December 7, 2021 15:34
Nice colored bash with git support
parse_git_branch() {
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\x1b[93m\1\x1b[97m)/'
}
export PS1="\033[01;32m\]\u@\h\[\033[00m\]:\033[01;34m\]\w\[\033[97m\]\$(parse_git_branch)\[\033[00m\] $ "