From 6262677a96db8f314f0b72667e20d41d3be00dc6 Mon Sep 17 00:00:00 2001 From: Simon Gomizelj Date: Tue, 29 Nov 2011 05:31:59 -0500 Subject: [PATCH] Better to use $+commands here. --- lib/notfound.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/notfound.zsh b/lib/notfound.zsh index 570976197..6ec65c881 100644 --- a/lib/notfound.zsh +++ b/lib/notfound.zsh @@ -1,4 +1,4 @@ -if [[ -x /usr/bin/pkgfile ]]; then +if (( $+commands[pkgfile] )); then command_not_found_handler() { local pkg p local pid ppid pgrp session tty_nr tpgid