Adds support for SDKMAN! to fish
Find a file
2023-06-25 19:02:21 +02:00
.github/workflows feat(ci): Tests print OS and version 2023-06-25 19:02:21 +02:00
.idea/runConfigurations chore: Update test workflow 2023-06-25 10:13:47 +02:00
completions Fix completions 2021-01-22 00:38:07 +01:00
conf.d fix: Put hacked init script where fisher installs stuff 2023-06-25 10:35:39 +02:00
functions Offer to install SDKMAN! if not already installed. 2019-11-05 04:24:36 +01:00
test Fix autoenv test 2021-02-26 17:30:37 +01:00
.editorconfig Final macOS incompatibility fix. 2019-11-06 20:52:07 +01:00
.gitignore Verify (re-)initialization of SDKMAN env vars works. 2019-07-30 22:19:32 +02:00
CHANGELOG.md Implement autoenv feature. 2021-02-26 17:17:08 +01:00
LICENSE Initial commit 2018-07-11 02:37:43 +02:00
README.md chore: Update test workflow 2023-06-25 10:13:47 +02:00

SDKMAN! for fish

license release GitHub release date Tests

Makes command sdk from SDKMAN! usable from fish, including auto-completion. Also adds binaries from installed SDKs to the PATH.

Version 2.0.0 has been tested with

  • fish 3.1.2, and
  • SDKMAN! 5.11.0, on
  • Ubuntu 20.04 LTS and macOS 10.15

Install

With fisher (install separately):

fisher install reitzig/sdkman-for-fish@v2.0.0

Note:

  • Only compatible with fisher v4 upwards; v3 is no longer supported.
  • You have to install SDKMAN! separately.

Usage

It's all in the background; you should be able to run sdk and binaries installed with sdk as you would expect.

Contribute

When you make changes, please run the tests at least on one platform before creating a pull request.

As the tests may mess up your own setup -- you have been warned! -- the recommended way is to run the tests in a Docker container:

docker build -t sdkman-for-fish-tests -f test/Dockerfile .
docker run --rm sdkman-for-fish-tests

A run configuration for Jetbrains IDEs is included.

It is a also possible to run individual features, for instance:

docker run --rm sdkman-for-fish-tests features/completions.feature

As a corollary, this is the fastest way to run all tests (if you do not care about the report):

for f in features/*.feature
  docker run --rm sdkman-for-fish-tests "$f" &
done
wait

Acknowledgements