From e606b09c9ee9c798a721d7e52fc10bf15514efca Mon Sep 17 00:00:00 2001 From: Kaleb Elwert Date: Thu, 13 Apr 2017 04:05:16 -0700 Subject: [PATCH] Update is-callable to also check builtins Fixes #1037 --- modules/helper/init.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/helper/init.zsh b/modules/helper/init.zsh index 9d79218..328bed4 100644 --- a/modules/helper/init.zsh +++ b/modules/helper/init.zsh @@ -12,7 +12,7 @@ function is-autoloadable { # Checks if a name is a command, function, or alias. function is-callable { - (( $+commands[$1] )) || (( $+functions[$1] )) || (( $+aliases[$1] )) + (( $+commands[$1] || $+functions[$1] || $+aliases[$1] || $+builtins[$1] )) } # Checks a boolean variable for "true".