summaryrefslogtreecommitdiff
path: root/etc/functions/help
diff options
context:
space:
mode:
Diffstat (limited to 'etc/functions/help')
-rw-r--r--etc/functions/help2
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/functions/help b/etc/functions/help
index aa0c269..db3eca1 100644
--- a/etc/functions/help
+++ b/etc/functions/help
@@ -21,7 +21,7 @@ function help_check_man { man -w $1 &> /dev/null }
function help_check_zshfunction { whichf $1 &> /dev/null }
function help_check_zshbuiltin { (( ${+builtins[$1]} )) }
function help_check_apt {
- [[ $commands[$1] != ${HOME}* ]] && check_com -c $1 && check_com -c apt-file
+ [[ $commands[$1] != ${HOME}* ]] && [[ -n $commands[$1] ]] && [[ -n $commands[apt-file ]]
}
function help_show_man { man $1 }