pull/204/merge
Ilia Mikhailov 2014-12-03 11:20:48 +00:00
commit 116d29c123
1 changed files with 2 additions and 1 deletions

View File

@ -44,6 +44,7 @@ bash-it ()
typeset component=${1:-}
shift
typeset func
case $verb in
show)
func=_bash-it-$component;;
@ -80,7 +81,7 @@ _is_function ()
_about 'sets $? to true if parameter is the name of a function'
_param '1: name of alleged function'
_group 'lib'
[ -n "$(type -a $1 2>/dev/null | grep 'is a function')" ]
[ -n "$(type -t $1 2>/dev/null | grep 'function')" ]
}
_bash-it-aliases ()