Skip to content

Instantly share code, notes, and snippets.

View danramteke's full-sized avatar

Daniel Ramteke danramteke

View GitHub Profile
@danramteke
danramteke / .bash_login
Last active October 21, 2015 15:14
useful bash configurations
RED="\033[0;31m"
YELLOW="\033[0;33m"
GREEN="\033[0;32m"
NO_COLOUR="\033[0m"
function parse_git_branch () {
git status -b --porcelain 2> /dev/null | head -1 | sed -e 's/## //' -e 's/\.\.\..*//'
}