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(docs): update fish completions command #16160

Merged
merged 1 commit into from Oct 29, 2023
Merged

fix(docs): update fish completions command #16160

merged 1 commit into from Oct 29, 2023

Conversation

MariaSolOs
Copy link
Contributor

This PR updates the fish configuration that should be used in order for shell completions provided from brew to work.

As the docs explain, with the current command completions inside (brew --prefix)/share/fish are appended to fish_complete_path, but since fish will use the first available file, we want (brew --prefix)/share/fish to be prepended instead.

Closes #16159. Given my explanation above, I think that what was happening is that this file was being used instead of the "real" one vendored by brew.

Copy link
Contributor

@apainintheneck apainintheneck left a comment

Choose a reason for hiding this comment

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

This makes sense to me. I use fish as well but I installed it from brew. Looking at my fish_complete_path I was able to see that the brew completions come after the builtin fish ones. When I changed the order of those two directories the completions stopped working for me.

end

if test -d (brew --prefix)"/share/fish/vendor_completions.d"
set -gx fish_complete_path $fish_complete_path (brew --prefix)/share/fish/vendor_completions.d
set -p fish_complete_path (brew --prefix)/share/fish/vendor_completions.d
Copy link
Contributor

Choose a reason for hiding this comment

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

Locally for me the brew completions are in this location.

@apainintheneck apainintheneck merged commit bf8991f into Homebrew:master Oct 29, 2023
27 checks passed
@apainintheneck
Copy link
Contributor

Thanks for the help!

@MariaSolOs MariaSolOs deleted the fish-completions branch October 29, 2023 06:40
@github-actions github-actions bot added the outdated PR was locked due to age label Nov 29, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 29, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
outdated PR was locked due to age
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Missing shell completions for fish
2 participants