Adds support for SDKMAN! to fish
Find a file
Raphael Reitzig 2d169ba9e0 fix(doc): Fix command to run tests
Makes the output nicer.
2024-01-02 16:51:59 +01:00
.github fix: Bump test Ruby to 3.3 2024-01-02 16:40:03 +01:00
.idea/runConfigurations feat(idea): Better test run configuration 2023-06-27 23:03:07 +02:00
completions chore: Switch trunk to main 2023-06-27 00:28:22 +02:00
conf.d chore: Switch trunk to main 2023-06-27 00:28:22 +02:00
functions chore: Switch trunk to main 2023-06-27 00:28:22 +02:00
test Update cucumber requirement from ~> 8 to ~> 9 in /test 2024-01-02 16:48:21 +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 chore: Timestamp v2.0.0 2023-06-27 00:29:46 +02:00
LICENSE chore: Switch trunk to main 2023-06-27 00:28:22 +02:00
README.md fix(doc): Fix command to run tests 2024-01-02 16:51:59 +01:00

SDKMAN! for fish

license release GitHub release date Test CodeQL

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.6.1, and
  • SDKMAN! 5.18.2, on
  • Ubuntu 22.04 LTS and macOS 12.6

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.
  • If you have installed SDKMAN! at a custom location, you need to add
    set -g __sdkman_custom_dir /your/path/to/sdkman
    
    to a fish config file run before .config/fish/conf.d/sdk.fish; for example, you can use .config/fish/conf.d/config_sdk.fish.

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 -it 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