Uses builtin check rather than env var

This commit is contained in:
Casey Chance 2020-04-30 10:49:36 -07:00
parent a6e84f9047
commit 4d97e3746a

View File

@ -1,9 +1,9 @@
_do_comp()
{
if [ -n "$ZSH_VERSION" ]; then
complete $@
else
if [[ $(type compopt) == *"builtin" ]]; then
compopt $@
else
complete $@
fi
}