From: Samir Benmendil Date: Sat, 15 Feb 2020 22:37:37 +0000 (+0000) Subject: zsh: add todo function to list TODOs in org X-Git-Url: https://git.rmz.io/dotfiles.git/commitdiff_plain/75188d23d00de844c9d8876c50177009da32c39a?ds=inline zsh: add todo function to list TODOs in org --- 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))