From c9b335769c5dfb79c782bc26a7022795eb606f1a Mon Sep 17 00:00:00 2001 From: Maxim Devoir Date: Mon, 7 Oct 2019 12:14:10 -0700 Subject: [PATCH] revert: suggest binaries on `yarn` This behavior is the same as before c6bdbc69e168b4dbdd25e6e32e02d049d2a456ef --- src/_yarn | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/_yarn b/src/_yarn index b50ad7f..d448fe1 100644 --- a/src/_yarn +++ b/src/_yarn @@ -76,7 +76,7 @@ _global_commands=( _yarn_commands_scripts() { local -a scripts - scripts=($(yarn run --json 2>/dev/null | sed -E '/possibleCommands/!d;s/.*Commands available from binary scripts: ([^"]+)".*/\1/;s/.*"items":\[([^]]+).*/\1/;s/[" ]//g' | tr , '\n' | sed -e 's/:/\\:/g')) + scripts=($(yarn run --json 2>/dev/null | sed -E '/Commands available|possibleCommands/!d;s/.*Commands available from binary scripts: ([^"]+)".*/\1/;s/.*"items":\[([^]]+).*/\1/;s/[" ]//g' | tr , '\n' | sed -e 's/:/\\:/g')) _describe 'command or script' _commands -- _global_commands -- scripts }