Skip to content

Instantly share code, notes, and snippets.

beep boop

Nick Ver Voort nickavv

beep boop
View GitHub Profile
nickavv / .bashrc
Created Mar 2, 2018
A nicely colored bash prompt for Mac with current git branch
View .bashrc
function parse_git_branch {
git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/\[\1\]/'
export PS1="\[\e[00;36m\]\u@\h:\[\e[0m\]\[\e[00;35m\]\w\[\033[0;31m\]\$(parse_git_branch)\[\e[00;35m\]\\$\[\e[0m\] "
nickavv / pom.xml
Created Mar 24, 2017
An example of how to override a transitive dependency in Maven
View pom.xml