Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
A dead stupid bash git-dashboard
w() {
clear && ls -l && echo && git branch && echo && git status --short --branch
}
dn() {
git status --short --branch | grep '^.[DM\?]' | head -1 | awk '$1 ~ /[MD]/ {print $2} $1 ~ /\?/ {print "/dev/null " $2}' | xargs git diff -- && w
}
an() {
git status --short --branch | grep '^.[DM\?]' | head -1 | awk '$1 ~ /[M?]/ {print "add " $2} $1 ~ /D/ {print "rm " $2}' | xargs git && w
}

fibo commented Dec 10, 2015

You are overriding the /usr/bin/w command.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment