From 31549fbf40e6bed44fd60e5da4a350117470a163 Mon Sep 17 00:00:00 2001 From: Tom Willemsen Date: Mon, 16 May 2011 10:57:14 +0200 Subject: ZSH: Show todolist upon entering a directory --- zsh/functions/chpwd_show_todo | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'zsh/functions/chpwd_show_todo') diff --git a/zsh/functions/chpwd_show_todo b/zsh/functions/chpwd_show_todo index f9cd576..3c9c522 100644 --- a/zsh/functions/chpwd_show_todo +++ b/zsh/functions/chpwd_show_todo @@ -1,5 +1,7 @@ # -*- mode: Shell-script -*- -if [ -e ".todo" ]; then - todo +if [ -e ".toudou" ]; then + toudou +elif [ "$PWD" = "$HOME" ]; then + toudou -g fi -- cgit v1.2.3-54-g00ecf