Adds support for SDKMAN! to fish
Makes command sdk
from SDKMAN! usable from fish, including auto-completion.
Also adds binaries from installed SDKs to the PATH.
Version 2.1.0 has been tested with
With fisher (install separately):
fisher install reitzig/[email protected]
Note:
SDKMAN_DIR
to that path using your preferred method, orset -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
.__sdkman_custom_dir
is used.It's all in the background; you should be able to run sdk
and
binaries installed with sdk
as you would expect.
When you propose changes, please run the tests at least on one platform before creating a pull request.
As the tests may mess up your machine -- you have been warned! -- the recommended way is to run them 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