-
Notifications
You must be signed in to change notification settings - Fork 140
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
forgit-git not found when trying to use forgit on fish when installed via the AUR #270
Comments
Hmm. Good question. So I wasn't the original one who wrote moved the script to conf.d. I'm not at my computer right now, but if you look back through the history, another contributor did that. I think if we find that person we can ask them, they have a much better handle on fish packages than myself (I use "plain" fish, and don't fully understand the plugin infra) |
Hey @folliehiyuki, since you're the one that moved forgit.plugin.fish to conf.d in #117 / #119, would you mind taking a look at this? The corresponding issue is #116 in case anybody is looking for it. Is having the script in conf.d a requirement for fish plugin managers or could it also be moved to vendor_conf.d? forgit/conf.d/forgit.plugin.fish Line 4 in ffda73b
|
For fisher the plugin definitely has to be in https://github.com/jorgebucaran/fisher#creating-a-plugin fish however reads plugin files from both directories: https://fishshell.com/docs/3.3/index.html#configuration-files So I think, we should leave the file in |
…onf.d (#272) In the fish wrapper, assume forgit-git to be in vendor_conf.d/bin in case it can not be found in conf.d/bin. This fixes forgit not working with fish when located in /usr/share/fish/vendor_conf.d, as is the case with the forgit and forgit-git AUR packages. The location at conf.d is kept (and stays the default), so forgit does not break compatibility with fish plugin managers, such as fisher. Closes #270
Check list
Environment info
Problem / Steps to reproduce
I tried reproducing #267 and found a similar (but I think different) issue with forgit on fish when installed via the forgit-git package in the AUR. When trying to run any forgit command in fish, I get an error like this:
The reason for this is, that the PKGBUILD installs the forgit fish wrapper in usr/share/fish/vendor_conf.d/ and also symlinks git-forgit there with:
But we expect forgit-git in usr/share/fish/conf.d/bin/ here:
forgit/conf.d/forgit.plugin.fish
Line 4 in ffda73b
Is the different directory name (conf.d/vendor_conf.d) a difference between macOS and Linux? When modifying the PKGBUILD, so that everything gets installed in conf.d instead, forgit does not become automatically available in fish.
I am completely new to fish and don't know what the solution should be here. Maybe @cjappl knows more about this?
The text was updated successfully, but these errors were encountered: