From: martin f. krafft Date: Sun, 29 Jun 2008 11:23:26 +0000 (+0200) Subject: show todo items on entry to dir X-Git-Url: https://git.madduck.net/etc/zsh.git/commitdiff_plain/95cb32f9b6cef714b4a77f2acc3940b5698df6da?ds=sidebyside;pf=etc show todo items on entry to dir --- diff --git a/.zsh/zshrc/30_aliases b/.zsh/zshrc/30_aliases index 810b799..67d8351 100644 --- a/.zsh/zshrc/30_aliases +++ b/.zsh/zshrc/30_aliases @@ -141,4 +141,12 @@ alias btd='btdownloadheadless' alias mdtest='swaks -s localhost -t' +if whence devtodo >/dev/null; then + _devtodo_on_chpwd() { + local out; out="$(devtodo)" + [[ -n $out ]] && print "todo:\n$out" + } + chpwd_functions+=_devtodo_on_chpwd +fi + # vim:ft=zsh