From 4add7f4dfb8dc91ed33b3d9c57e395a9a6434e87 Mon Sep 17 00:00:00 2001 From: Jordan Rastrick Date: Tue, 1 Oct 2019 12:50:37 +1000 Subject: [PATCH] Improve _yarn changes Use `_default` instead of `_files` and don't unnecessarily wrap with `_arguments` --- src/_yarn | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/_yarn b/src/_yarn index 61a3d9a..34718e0 100644 --- a/src/_yarn +++ b/src/_yarn @@ -241,7 +241,7 @@ _yarn() { run) _arguments \ '1: :_yarn_scripts' \ - '*:: :_files' + '*:: :_default' ;; tag) @@ -269,8 +269,7 @@ _yarn() { ;; *) - _arguments \ - '*:: :_files' + _default ;; esac ;;