-
-
Notifications
You must be signed in to change notification settings - Fork 12.1k
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
jenv: install fish function symlinks #76864
Conversation
e4ad91e
to
855afae
Compare
e7c5f61
to
8821e82
Compare
based on feedback in this PR Homebrew/homebrew-core#76864.
The caveat isn't compatible with fish shell. This PR changes the caveat for fish shell to show the commands specified in the upstream's README here \[1\]. This PR does not change the caveat for other shells. fixes jenv/jenv#315 I have tested this PR and get the output below. With bash set as default shell (`chsh -s $(which bash)`): ``` brew info jenv jenv: stable 0.5.4, HEAD Manage your Java environment https://www.jenv.be/ /opt/homebrew/Cellar/jenv/0.5.4 (82 files, 72.3KB) * Built from source on 2021-05-07 at 17:19:07 From: https://github.com/Homebrew/homebrew-core/blob/HEAD/Formula/jenv.rb License: MIT ==> Options --HEAD Install HEAD version ==> Caveats To activate jenv, add the following to your /Users/dxia/.bash_profile: export PATH="$HOME/.jenv/bin:$PATH" eval "$(jenv init -)" ==> Analytics install: 9,672 (30 days), 30,663 (90 days), 129,619 (365 days) install-on-request: 9,670 (30 days), 30,635 (90 days), 128,558 (365 days) build-error: 0 (30 days) ``` With fish set as default shell: ``` brew info jenv jenv: stable 0.5.4, HEAD Manage your Java environment https://www.jenv.be/ /opt/homebrew/Cellar/jenv/0.5.4 (82 files, 72.3KB) * Built from source on 2021-05-07 at 17:19:07 From: https://github.com/Homebrew/homebrew-core/blob/HEAD/Formula/jenv.rb License: MIT ==> Options --HEAD Install HEAD version ==> Caveats To activate jenv, run the following commands: echo 'status --is-interactive; and source (jenv init -|psub)' >> ~/.config/fish/config.fish" ln -sf /opt/homebrew/opt/jenv/libexec/fish/jenv.fish ~/.config/fish/functions/jenv.fish" ln -sf /opt/homebrew/opt/jenv/libexec/fish/export.fish ~/.config/fish/functions/export.fish" ==> Analytics install: 9,672 (30 days), 30,663 (90 days), 129,619 (365 days) install-on-request: 9,670 (30 days), 30,635 (90 days), 128,558 (365 days) build-error: 0 (30 days) ``` 1: https://github.com/jenv/jenv/blob/9bbc5ebfe6f38252a1a0f28897c7ae52e6a483a0/README.md
@carlocab Thanks for reviewing. Let me know any next steps required from me. If none, would be great to have this merged in. |
Bumping to see what else I can do to move this forward. It seems like this thread is the only unresolved one? #76864 (comment) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I started to create a PR with more or less these same changes and then found this. This all works for me and is a big improvement over the current (broken) instructions. Thanks @davidxia!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't mind merging this, subject to one suggestion, and pending the answer to one question.
Co-authored-by: Carlo Cabrera <30379873+carlocab@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hopefully have the last part in here as adoptable suggestions (in case that's helpful; feel free to ignore if not).
Co-authored-by: Wes Morgan <github@wesmorgan.me>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great, I think we can merge this soon. Let's just try to clean up the whitespace a bit; I don't think we need this much.
Co-authored-by: Carlo Cabrera <30379873+carlocab@users.noreply.github.com>
FWIW the old title of this PR is still appropriate for it. Or at least both effects are pretty important here (i.e. fixing the fish caveat instructions and installing the functions in the appropriate place). |
Thanks, @davidxia, @cap10morgan. |
The caveat isn't compatible with fish shell.
This PR changes the caveat for fish shell to show the
commands specified in the upstream's README here [1].
This PR does not change the caveat for other shells.
fixes jenv/jenv#315
I have tested this PR and get the output below.
With bash set as default shell (
chsh -s $(which bash)
):With fish set as default shell:
1: https://github.com/jenv/jenv/blob/9bbc5ebfe6f38252a1a0f28897c7ae52e6a483a0/README.md
brew install --build-from-source <formula>
, where<formula>
is the name of the formula you're submitting?brew test <formula>
, where<formula>
is the name of the formula you're submitting?brew audit --strict <formula>
(after doingbrew install <formula>
)?