From eddf06b830b2ff5422515c9df76322e567f18f8e Mon Sep 17 00:00:00 2001 From: Hugues Hiegel Date: Fri, 31 Jul 2009 09:52:59 +0200 Subject: [Funcs] When only when .when exists. Yeah, really. --- 01_Functions.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '01_Functions.zsh') diff --git a/01_Functions.zsh b/01_Functions.zsh index 4c376c9..e1370e8 100644 --- a/01_Functions.zsh +++ b/01_Functions.zsh @@ -272,7 +272,7 @@ set_prompt_colors () chpwd() { - if cmd_exists when + if cmd_exists when && [ -e .when/birthdays ] then LATEST=`stat 2>&- --printf="%z\n" .when/.today | cut -d' ' -f1` TODAY=`date "+%Y-%m-%d"` -- cgit v1.2.3