Skip to content

Instantly share code, notes, and snippets.

View boosty's full-sized avatar

Sebastian Röbke boosty

View GitHub Profile
@boosty
boosty / psgrep.sh
Created September 4, 2009 09:22 — forked from mojombo/psg.sh
function psgrep {
ps wwwaux | egrep "($1|%CPU)" | grep -v grep
}
@boosty
boosty / git_status.sh
Created January 15, 2009 09:54 — forked from henrik/.bashrc
git dirty prompt with a flash!
# http://henrik.nyh.se/2008/12/git-dirty-prompt
# http://www.simplisticcomplexity.com/2008/03/13/show-your-git-branch-name-in-your-prompt/
#
# boosty likes it like that:
# ~/dev/dir[master]$ # clean working directory
# ~/dev/dir[master⚡]$ # dirty working directory
function parse_git_dirty {
[[ $(git status 2> /dev/null | tail -n1) != "nothing to commit, working directory clean" ]] && echo "⚡"
}