From a4888cfff67d077a8e153b367544adcf9f78eaa7 Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Tue, 14 Feb 2012 02:36:48 +0100 Subject: [PATCH] zsh/rc: Don't use which. --- zsh/rc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zsh/rc b/zsh/rc index 4f5d100..0cd6756 100644 --- a/zsh/rc +++ b/zsh/rc @@ -739,7 +739,7 @@ done &) # Run reminder and redisplay it every four hours (if it's available). PERIOD=14400 periodic() { - which rem > /dev/null && [ -f ~/.reminders ] && rem -h + (( $+commands[rem] )) && [ -f ~/.reminders ] && rem -h } -- 2.44.2