Skip to content

feat: add descriptions for bash and powershell autocompletion#2298

Open
gabelluardo wants to merge 1 commit intourfave:mainfrom
gabelluardo:fix-completion
Open

feat: add descriptions for bash and powershell autocompletion#2298
gabelluardo wants to merge 1 commit intourfave:mainfrom
gabelluardo:fix-completion

Conversation

@gabelluardo
Copy link
Copy Markdown

What type of PR is this?

  • bug
  • feature

What this PR does / why we need it:

This PR fixes a long standing issue with subshells, adding by default commands descriptions to all the supported shells.

  • bash_autocomplete and powershell_autocomplete added the ability to handle command descriptions
  • example_test.go fixed output for the new behaviour
  • help.go removed the environment variable dependency

Which issue(s) this PR fixes:

Fixes #1884

Special notes for your reviewer:

I'm a noob in bash so I think there is a big margin to improve that code.
It works, but suggestions are really welcome.

Testing

I used my own projects to test it with bash, zsh and fish, searching regressions.

I'm not able to test the powershell implementation, but ideally should work

Release Notes

feat: add descriptions for bash and powershell autocompletion

@gabelluardo gabelluardo requested a review from a team as a code owner March 28, 2026 20:42
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.

Shell completions are broken when login shell is different than currently active shell

1 participant