1
0
mirror of https://github.com/dcarrillo/prezto.git synced 2025-10-14 15:49:09 +00:00

[Fix #249] Add documentation for helper

This commit is contained in:
Sorin Ionescu
2012-09-08 19:21:00 -04:00
parent 10f333f45c
commit b48e0ed74f
2 changed files with 9 additions and 5 deletions

View File

@@ -10,7 +10,7 @@ function is-autoloadable {
( unfunction $1 ; autoload -U +X $1 ) &> /dev/null
}
# Checks a name if it is a command, function, or alias.
# Checks if a name is a command, function, or alias.
function is-callable {
(( $+commands[$1] )) || (( $+functions[$1] )) || (( $+aliases[$1] ))
}