From 90645c5583a96be6bf4ac1eb9d762b8adcf60db6 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Sat, 6 Oct 2012 15:35:42 -0400 Subject: [PATCH] .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. --- src/.bashrc.d/10aliases | 1 + 1 file changed, 1 insertion(+) 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' -- 2.26.2