From: W. Trevor King Date: Sat, 6 Oct 2012 19:35:42 +0000 (-0400) Subject: .bashrc.d/10aliases: add git-blame-author for narrower blame listings. X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=90645c5583a96be6bf4ac1eb9d762b8adcf60db6;p=dotfiles-public.git .bashrc.d/10aliases: add git-blame-author for narrower blame listings. This strips all the commit info out of the blame lines except the author name, which makes it easier for me to see what students have changed when I'm reviewing homework submissions. --- diff --git a/src/.bashrc.d/10aliases b/src/.bashrc.d/10aliases index 94a05fa..9cb2d40 100644 --- a/src/.bashrc.d/10aliases +++ b/src/.bashrc.d/10aliases @@ -25,6 +25,7 @@ alias oggr='ogg123 -qb 500' # play ogg radio streams (quiet, big input buffer) # Alias useful one-liners & common commands alias findex='find . -perm -u+x ! -type d' +alias git-blame-author='git blame sudoku.c | sed "s/^[^(]*//" | sed "s/ [0-9]\{4\}-[^)]*//" | less' alias sortdat='find . -printf "%TY-%Tm-%Td+%TH:%TM:%TS %h/%f\n" | sort -n' alias sortdirdat='find . -type d -printf "%TY-%Tm-%Td+%TH:%TM:%TS %h/%f\n" | sort -n' alias pythonhttp='python -m SimpleHTTPServer 8000'