mirror of
https://github.com/ipfs/kubo.git
synced 2026-02-21 10:27:46 +08:00
Uses builtin check rather than env var
This commit is contained in:
parent
a6e84f9047
commit
4d97e3746a
@ -1,9 +1,9 @@
|
||||
_do_comp()
|
||||
{
|
||||
if [ -n "$ZSH_VERSION" ]; then
|
||||
complete $@
|
||||
else
|
||||
if [[ $(type compopt) == *"builtin" ]]; then
|
||||
compopt $@
|
||||
else
|
||||
complete $@
|
||||
fi
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user