Skip to content

Instantly share code, notes, and snippets.

Vish (Ishaya) Abrams vishvananda

Block or report user

Report or block vishvananda

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:1253118
#!/usr/bin/env bash
function die {
echo $1
echo "usage: $0 <username> <password>" \
exit 1
function git_branch {
git branch --no-color 2> /dev/null | egrep '^\*' | sed -e 's/^* //'
function git_dirty {
# only tracks modifications, not unknown files needing adds
if [ -z "`git status -s | awk '{print $1}' | grep '[ADMTU]'`" ] ; then
return 1
return 0
You can’t perform that action at this time.