last command reuse relative dates - notes - a console notes manager using git DIR Log DIR Files DIR Refs DIR Tags DIR LICENSE --- DIR commit 9e275119a1e5def852ee9cb71077f1908c1d128f DIR parent 71f0cbd9e967d15c0881e69447d0ceded20a0142 HTML Author: Solene Rapenne <solene@perso.pw> Date: Tue, 7 May 2019 12:44:49 +0200 last command reuse relative dates Diffstat: M notes | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- DIR diff --git a/notes b/notes @@ -113,7 +113,7 @@ delete() { # display the list of edited files ordered by time last() { cd "$REPO" - git log --name-only | \ + git log --date=relative --name-only | \ awk ' /^commit / { date="no" @@ -137,7 +137,7 @@ last() { { seen[$0]++ if(seen[$0]==1) { - print date"\t"$0 + print date" "$0 } } }' | head -n $1