Skip to content

Instantly share code, notes, and snippets.

Avatar
🤖
beep boop

Nick Ver Voort nickavv

🤖
beep boop
View GitHub Profile
@nickavv
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
nickavv / pom.xml
Created Mar 24, 2017
An example of how to override a transitive dependency in Maven
View pom.xml
<dependency>
<groupId>transitive.group.id</groupId>
<artifactId>artifact-id</artifactId>
<version>your.preferred.version</version>
</dependency>