Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: bash completion script #17147

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

fix: bash completion script #17147

wants to merge 1 commit into from

Conversation

Foo-x
Copy link

@Foo-x Foo-x commented Feb 7, 2025

What does this PR do?

#6037

Fixed the bash completion script to complete scripts in package.json.

  • local scripts="${matched%%\}*}"; didn't work if scripts contained } characters.
  • Since re_comp_word_script was not defined, the condition ( "${COMPREPLY[*]}" =~ ${re_comp_word_script} ) was always true and completions for scripts were removed.

  • Documentation or TypeScript types (it's okay to leave the rest blank in this case)
  • Code changes

How did you verify your code works?

package.json
image

before after
image image
image image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant