-
-
Save akshaypuradkar/8709dbead48863e4b91c to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| function w | |
| clear ;and ls -l ;and echo ;and git branch ;and echo ;and git status --short --branch | |
| end | |
| function dn | |
| clear;and git status --short --branch | grep '^.[DM\?]' | head -1 | awk '$1 ~ /[MD]/ {print $2} $1 ~ /\?/ {print "/dev/null " $2}' | xargs git diff -- |less;and w | |
| end | |
| function an | |
| git status --short --branch | grep '^.[DM\?]' | head -1 | awk '$1 ~ /[M?]/ {print "add " $2} $1 ~ /D/ {print "rm " $2}' | xargs git ;and w | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment