1
0
mirror of https://github.com/dcarrillo/prezto.git synced 2024-12-22 19:48:00 +00:00

Update is-callable to also check builtins

Fixes #1037
This commit is contained in:
Kaleb Elwert 2017-04-13 04:05:16 -07:00
parent d035e4cf1e
commit e606b09c9e

View File

@ -12,7 +12,7 @@ function is-autoloadable {
# Checks if a name is a command, function, or alias. # Checks if a name is a command, function, or alias.
function is-callable { function is-callable {
(( $+commands[$1] )) || (( $+functions[$1] )) || (( $+aliases[$1] )) (( $+commands[$1] || $+functions[$1] || $+aliases[$1] || $+builtins[$1] ))
} }
# Checks a boolean variable for "true". # Checks a boolean variable for "true".