From 95cb32f9b6cef714b4a77f2acc3940b5698df6da Mon Sep 17 00:00:00 2001 From: "martin f. krafft" Date: Sun, 29 Jun 2008 13:23:26 +0200 Subject: [PATCH] show todo items on entry to dir --- .zsh/zshrc/30_aliases | 8 ++++++++ 1 file changed, 8 insertions(+) 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 -- 2.39.5