fish completions file path is likely wrong in help/documentation
- [x] I have searched the issues of this repo and believe that this is not a duplicate.
Issue
Hello :)
It looks like completions for fish have moved directory since the documentation was created. Per the fish documentation, they now reside in /usr/share/fish/completions/ (a bit dependent on installation). As such, the command is more likely to be
poetry completions fish > /usr/share/fish/completions/poetry.fish
which causes access problems :)
Hi @jnik-aarhus. For future reference, it would have been a bit easier to help you if had you linked to the Poetry shell completion documentation to which your issue ostensibly refers. In any case, you wrote:
Per the
fishdocumentation, [the completions] now reside in /usr/share/fish/completions/
The relevant section of those docs — Where to Put Completions — makes it very clear that /usr/share/fish/completions/ is for "completions shipped with Fish", which is therefore not an appropriate location for tools like Poetry to store their completions. While the Fish shell documentation suggests that /usr/share/fish/vendor_completions.d be used by "third-party software vendors to ship their own completions for their software", /usr/share/fish doesn't exist in some environments (e.g., macOS brew'd Fish), and /usr/share/ is owned by root and is thus associated with the access problems you mentioned in your issue description.
Running echo $fish_complete_path will show you all the paths that completions can be placed and be recognized by Fish. Of all the items in that list on my system, the ~/.config/fish/completions/ path that's mentioned in the existing Poetry documentation is indeed the most appropriate path for Poetry completions.
I hope this helps clarify things for you. Assuming it does, would you please save Poetry maintainers some time and close this issue?
Hello,
Thank you very much for your comprehensive answer! I realised this after opening this issue, and I apologise for my confusion. I'll close this issue, and again, thank you for taking the time to answer me.
Glad you found it helpful. Cheers! 😁
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.