-
-
Save arialdomartini/721c2be0d4edc6f0b5ac to your computer and use it in GitHub Desktop.
A dead stupid bash git-dashboard
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You are overriding the
/usr/bin/w
command.