Skip to content

Commit

Permalink
fix: correctly check for _yarn existance
Browse files Browse the repository at this point in the history
  • Loading branch information
BuonOmo committed Nov 7, 2022
1 parent 20bb35b commit e43d858
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion yarn-extra-completion.plugin.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
_yc_run_default() {
if (( ${+YARN_EXTRA_COMPLETION_DEFAULT} )); then
$YARN_EXTRA_COMPLETION_DEFAULT "$@"
elif (( ${+commands[_yarn]} )); then
elif type _yarn &> /dev/null; then
_yarn "$@"
fi
}
Expand Down

0 comments on commit e43d858

Please sign in to comment.