diff options
author | Tom Willemsen | 2011-05-16 10:57:14 +0200 |
---|---|---|
committer | Tom Willemsen | 2011-05-16 10:57:14 +0200 |
commit | 31549fbf40e6bed44fd60e5da4a350117470a163 (patch) | |
tree | 24bdbbc3efca9ae62dd75932d7527f611e0fd7f8 /zsh/functions/chpwd_show_todo | |
parent | 47f8de52d95097968748e3552fdccf67c7f9d20a (diff) | |
download | dotfiles-31549fbf40e6bed44fd60e5da4a350117470a163.tar.gz dotfiles-31549fbf40e6bed44fd60e5da4a350117470a163.zip |
ZSH: Show todolist upon entering a directory
Diffstat (limited to 'zsh/functions/chpwd_show_todo')
-rw-r--r-- | zsh/functions/chpwd_show_todo | 6 |
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 |