-
-
Notifications
You must be signed in to change notification settings - Fork 630
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
GVM doesn't work with Fish shell #294
Comments
Unfortunately we do not support fish shell. Only bash and zsh are supported (as well as power shell through posh GVM). The real solution would be to write a client for fish shell that utilises the GVM API. |
Not cool guys, totally not cool. I've been using GVM alongside fish shell for about 1 year and today my setup was broken after update from GVM to sdkman. |
As before, we do not officially support fish shell. If you want to get involved to make it compatible, feel free to fork and contribute to this free service that we are providing to you. |
+1 |
Thanks but this is not working solution. Simple workaround, add to
Completion script from your blog is working after removing first invalid method named: |
Sorry, fixed the post. |
Thx, works like a charm 👍 |
You should support fish-shell, I don't think that should be a difficult task and fish-shell is much better than the old fashioned bash shell. Also thanks for this great work, sticking with bash for now. |
We still have no major plans to support fish shell as it still has a pretty On Tue, 19 Apr 2016 at 16:01 Giancarlo Chiappe notifications@github.com
|
So, this is all about popularity :) I dont get why happy fish user could try ZSH? Could you explain? |
Probably because making sdkman compatible with a new shell (with If the fish shell community wants to be supported, we would gladly
|
Closing this issue as sadly no PRs were received. |
i know is a closed post, but just FYI, you can add fish shell support easily with this snippet of code function sdk
bass source ~/.sdkman/bin/sdkman-init.sh --no-use ';' sdk $argv
end has a dependency on the bass library : https://github.com/edc/bass example : |
Please take look at blog entry describing sdkman along with fish shell ;) http://tedwise.com/2016/02/26/using-sdkman-with-the-fish-shell (praises for Ted Wise). |
@Markcial this doesn't work for me.
|
@amosbird Fixed on edc/bass, can you try upgrading your edc/bass with |
@Markcial Thanks. It works now. |
I wrote a script like this and saved as #!/usr/bin/fish
# sdk command
function sdk
bash -c "source $HOME/.sdkman/bin/sdkman-init.sh && sdk $argv"
end
# add paths
for ITEM in $HOME/.sdkman/candidates/* ;
set -gx PATH $PATH $ITEM/current/bin
end |
@ctwise I'm getting lots of errors:
It seems the interface of
So, simple fix:
Thanks a lot, huge help! I wonder how much work it would be to make this into a PR. Sdkman's installer could detect if |
@ctwise The list of commands apparently need an update, too: Maybe, at this point, it'd be good to have a Github project for your scripts (and deploy them via fisher or similar), then we could collaborate to keep it up to date more easily. Are you up for setting that up? |
No probs, feel free to keep discussing it here. I just didn't understand the context so my bad... |
I set up a repo: reitzig/sdkman-for-fish. There is some work to do on the completions; pull requests appreciated. @ctwise and @yookoala, I hope you are fine with the MIT license and credits; if not, please let me know. Update: Completion is now up to date and improved (doesn't complete arbitrarily many parameters, which sdk doesn't support). Also fixed bugs with the sdk function itself (subshells would get duplicate PATH entries; Update 2: To all who google here, I can only recommend to install "my" version. What was posted above was simply broken; for instance, |
@marc0der At this point, would it be conceivable to have the SDKMAN! installer detect the presence of fish, and either install support there (potentially destructive, so meh) or give the user a hint how they can get it? |
I'm open to either approach. We seem to have a lot of fish shell users now so why not give them first class support? The installer script can be found here: |
I posted a draft: sdkman/sdkman-hooks#9 It would be great if one of the other fish users could chime in. As the author of the (not yet fully matured and battle-tested) integration I feel slightly awkward pushing this. |
The previous work-around for using GVM with the Fish shell was to add all the 'current' links to the PATH. This appears to be broken with newer versions of GVM. The 'current' link is only set to the default version of the given tool and doesn't get updated when 'use'-ing a different version.
The text was updated successfully, but these errors were encountered: