Skip to content
This repository has been archived by the owner on May 15, 2020. It is now read-only.

Commit

Permalink
Update is-callable to also check builtins
Browse files Browse the repository at this point in the history
  • Loading branch information
belak committed Apr 13, 2017
1 parent d035e4c commit e606b09
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/helper/init.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -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".
Expand Down

0 comments on commit e606b09

Please sign in to comment.