From 75188d23d00de844c9d8876c50177009da32c39a Mon Sep 17 00:00:00 2001 From: Samir Benmendil Date: Sat, 15 Feb 2020 22:37:37 +0000 Subject: [PATCH] zsh: add todo function to list TODOs in org --- zsh/functions/todo | 4 ++++ zsh/lib/motd.zsh | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 zsh/functions/todo diff --git a/zsh/functions/todo b/zsh/functions/todo new file mode 100644 index 0000000..142719e --- /dev/null +++ b/zsh/functions/todo @@ -0,0 +1,4 @@ +function todo() { + cd ~/org + grep --color=always '* TODO' *.org +} diff --git a/zsh/lib/motd.zsh b/zsh/lib/motd.zsh index 1c6e9e4..8821c16 100644 --- a/zsh/lib/motd.zsh +++ b/zsh/lib/motd.zsh @@ -11,4 +11,4 @@ msg() } # 44 seems to be the number of color escape characters used by grep -grep "* TODO" org/* --color=always | cut -c-$((COLUMNS + 44)) +todo | cut -c-$((COLUMNS + 44)) -- 2.48.1