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

feat: support fish completion #2929

Merged
merged 3 commits into from
May 31, 2024
Merged

Conversation

suzuki-shunsuke
Copy link
Member

@suzuki-shunsuke suzuki-shunsuke commented May 31, 2024

Close #2927

Add a subcommand aqua completion fish, which outputs the shell completion for fish.

aqua completion fish | source

@suzuki-shunsuke suzuki-shunsuke added the enhancement New feature or request label May 31, 2024
@suzuki-shunsuke suzuki-shunsuke added this to the v2.28.2 milestone May 31, 2024
@suzuki-shunsuke suzuki-shunsuke linked an issue May 31, 2024 that may be closed by this pull request
Comment on lines 32 to 34
if command -v aqua &> /dev/null;
aqua completion fish | source
end
Copy link

@reitzig reitzig May 31, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FWIW, that does not seem to be the recommended way: https://fishshell.com/docs/current/completions.html#where-to-put-completions
(I used that command in the issue for brevity and because it tests the command output; sorry if that was confusing.)

Rather, I would manually run

aqua completion fish > .config/fish/completions/aqua.fish

once after installation/upgrade. No additional hook is necessary.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for your review.
Fixed. dee19a2

@suzuki-shunsuke suzuki-shunsuke merged commit 9ff6537 into main May 31, 2024
11 checks passed
@suzuki-shunsuke suzuki-shunsuke deleted the feat-support-fish-completion branch May 31, 2024 14:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Generate completions for fish shell
2 participants