From: Simon Ruderich Date: Tue, 14 Feb 2012 01:36:48 +0000 (+0100) Subject: zsh/rc: Don't use which. X-Git-Url: https://ruderich.org/simon/gitweb/?a=commitdiff_plain;h=a4888cfff67d077a8e153b367544adcf9f78eaa7;p=config%2Fdotfiles.git zsh/rc: Don't use which. --- 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 }