You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
The command to set up fan2go zsh autocompletion on Linux for every new session does not result in the correct file location on Manjaro. The instructed command from fan2go completion zsh --help is fan2go completion zsh > "${fpath[1]}/_fan2go".
To Reproduce
Steps to reproduce the behavior:
On Manjaro, in a terminal, run fan2go completion zsh --help to get the instructions.
Following the instructions for Linux, run fan2go completion zsh > "${fpath[1]}/_fan2go"
See error:
% fan2go completion zsh >"${fpath[1]}/_fan2go"
zsh: no such file or directory: /usr/local/share/zsh/site-functions/_fan2go
Verify /usr/local/share/zsh does not exist:
% ls /usr/local/share/zsh
ls: cannot access '/usr/local/share/zsh': No such file or directory
Expected behavior
My zsh site-functions directory is /usr/share/zsh/site-functions, so I would expect the recommended command to use that directory. Alternatively, I would expect a note warning that the location might be /usr/share/zsh/site-functions instead of /usr/local/share/zsh/site-functions.
Desktop (please complete the following information):
Distro: Manjaro
uname -a: Linux <hostname> 6.6.54-2-MANJARO #1 SMP PREEMPT_DYNAMIC Tue Oct 8 03:11:08 UTC 2024 x86_64 GNU/Linux
sensors -v: sensors version 3.6.0+git with libsensors version 3.6.0+git
fan2go version: 0.8.1
Additional context
I'm using zsh 5.9. As far as I know, I have not done any configuration to zsh except a few p10k configure calls for the theme. From some brief searching, it appears that zsh using either /usr/share or /usr/local/share varies based on Linux distro.
The text was updated successfully, but these errors were encountered:
The completion command is part of the cobra golang library for building CLI interfaces and not built or maintained by me. If the location is different on manjaro, its probably because the manjaro devs thought it would be a good idea to diverge from the arch default for some reason. You can let the cobra maintainers know on their GitHub (mentioned above) and they might do something about it. Please make sure to search for existing issues first before creating one. If you do, please link the issue here so I can update the library to include their fix, if a PR is merged on their end.
Unfortunately thats all I am able to do from this end.
@markusressel No worries, thanks for the info! I'll check out the issues over at cobra and link back if I find/create something relevant.
FYI I'm not super familiar with PKGBUILD files, but from a glance I believe the standard Arch Linux extra/zsh and extra/zsh-completions packages use /usr/share, not /usr/local/share, so I don't think Manjaro is going against the default here. It does seem like Oh My Zsh considers the non-*/local/* directories to be insecure in some permissions/ownership setups, so I can see an argument to avoid those locations, though.
I did some digging and couldn't find anything about this particular issue in the cobra repo, so I submitted an issue there: spf13/cobra#2204. I'll ping you if there's a PR merged for it!
Describe the bug
The command to set up fan2go zsh autocompletion on Linux for every new session does not result in the correct file location on Manjaro. The instructed command from
fan2go completion zsh --help
isfan2go completion zsh > "${fpath[1]}/_fan2go"
.To Reproduce
Steps to reproduce the behavior:
fan2go completion zsh --help
to get the instructions.fan2go completion zsh > "${fpath[1]}/_fan2go"
/usr/local/share/zsh
does not exist:% ls /usr/local/share/zsh ls: cannot access '/usr/local/share/zsh': No such file or directory
/usr/share/zsh
exists:Expected behavior
My zsh site-functions directory is
/usr/share/zsh/site-functions
, so I would expect the recommended command to use that directory. Alternatively, I would expect a note warning that the location might be/usr/share/zsh/site-functions
instead of/usr/local/share/zsh/site-functions
.Desktop (please complete the following information):
uname -a
:Linux <hostname> 6.6.54-2-MANJARO #1 SMP PREEMPT_DYNAMIC Tue Oct 8 03:11:08 UTC 2024 x86_64 GNU/Linux
sensors -v
:sensors version 3.6.0+git with libsensors version 3.6.0+git
fan2go version
:0.8.1
Additional context
I'm using zsh 5.9. As far as I know, I have not done any configuration to zsh except a few
p10k configure
calls for the theme. From some brief searching, it appears that zsh using either/usr/share
or/usr/local/share
varies based on Linux distro.The text was updated successfully, but these errors were encountered: