mirror of
https://github.com/zsh-users/zsh-completions.git
synced 2026-11-24 00:26:21 +08:00
1 file changed
+1
-1
@@ -116,7 +116,7 @@ _yarn_commands_scripts() {
|
||||
fi
|
||||
|
||||
if [[ -n $packageJson ]]; then
|
||||
scripts=($(cat "$packageJson" | perl -0777 -MJSON::PP -n -E '%r=decode_json($_); say for sort keys %{$r->{scripts}}'))
|
||||
scripts=($(cat "$packageJson" | perl -0777 -MJSON::PP -n -E '$r=decode_json($_); say for sort keys %{$r->{scripts}}'))
|
||||
fi
|
||||
|
||||
_describe 'command or script' _commands -- _global_commands -- scripts -- binaries
|
||||
|
||||
Reference in new issue
Block a user