Skip to content

Commit

Permalink
Uses builtin check rather than env var
Browse files Browse the repository at this point in the history
  • Loading branch information
cachance7 committed Apr 30, 2020
1 parent a6e84f9 commit 4d97e37
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions misc/completion/ipfs-completion.bash
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
_do_comp()
{
if [ -n "$ZSH_VERSION" ]; then
complete $@
else
if [[ $(type compopt) == *"builtin" ]]; then
compopt $@
else
complete $@
fi
}

Expand Down

0 comments on commit 4d97e37

Please sign in to comment.