From d780e243ad3f1ce3b550c373e598bee3715b8195 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Revol?= Date: Thu, 7 Jan 2016 23:23:11 +0100 Subject: [PATCH] dev-perso: check for a TODO list and print first 5 items --- 3rdparty/mmu_man/scripts/dev-perso | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/3rdparty/mmu_man/scripts/dev-perso b/3rdparty/mmu_man/scripts/dev-perso index 4d6f497c2a..b5a786d252 100755 --- a/3rdparty/mmu_man/scripts/dev-perso +++ b/3rdparty/mmu_man/scripts/dev-perso @@ -131,9 +131,15 @@ dev() { ;; esac + # check for a TODO list + for f in TODO TODO.org; do + test -e "$f" && grep '^* ' "$f" | grep --color=always ' TODO ' | head -5 && break + done + DEVUPCMD="" # source the specific profile file + # (which will likely cd to the checkout directory) test -f .profile && . .profile # if no editor defined, set one