Skip to content

Instantly share code, notes, and snippets.

@jwhitcraft
jwhitcraft / bash_prompt.sh
Created November 30, 2010 15:12
When Inside a git working directory put the current branch on your bash prompt
# You just add this to your .bash_profile inside your home dir.
function parse_git_branch {
git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/'
}
function proml {
local BLUE="\[\033[0;34m\]"
local RED="\[\033[0;31m\]"
local LIGHT_RED="\[\033[1;31m\]"
<?
/////////////////////
// slack2html
// by @levelsio
/////////////////////
//
/////////////////////
// WHAT DOES THIS DO?
/////////////////////
//