summaryrefslogtreecommitdiffstats
path: root/zsh
diff options
context:
space:
mode:
authorGravatar Tom Willemsen2011-05-16 10:57:14 +0200
committerGravatar Tom Willemsen2011-05-16 10:57:14 +0200
commit31549fbf40e6bed44fd60e5da4a350117470a163 (patch)
tree24bdbbc3efca9ae62dd75932d7527f611e0fd7f8 /zsh
parent47f8de52d95097968748e3552fdccf67c7f9d20a (diff)
downloaddotfiles-31549fbf40e6bed44fd60e5da4a350117470a163.tar.gz
dotfiles-31549fbf40e6bed44fd60e5da4a350117470a163.zip
ZSH: Show todolist upon entering a directory
Diffstat (limited to 'zsh')
-rw-r--r--zsh/functions/chpwd_show_todo6
1 files changed, 4 insertions, 2 deletions
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