diff --git a/lib/helpers.bash b/lib/helpers.bash index e1787fe0..c1e999ea 100644 --- a/lib/helpers.bash +++ b/lib/helpers.bash @@ -80,7 +80,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 -a $1 2>/dev/null | egrep 'is a function')|是函数" ] } _bash-it-aliases ()