From 063579dc667fed73ecf632ed90ea28475b630bcc Mon Sep 17 00:00:00 2001 From: Raphael Reitzig <4246780+reitzig@users.noreply.github.com> Date: Sun, 25 Jun 2023 10:35:39 +0200 Subject: [PATCH] fix: Put hacked init script where fisher installs stuff This changed with fisher 4; we now copy their exact code that determines where to put functions. --- conf.d/sdk.fish | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/conf.d/sdk.fish b/conf.d/sdk.fish index bf4f1d6..a37cbf5 100644 --- a/conf.d/sdk.fish +++ b/conf.d/sdk.fish @@ -8,7 +8,10 @@ # https://github.com/reitzig/sdkman-for-fish set __fish_sdkman_init "$HOME/.sdkman/bin/sdkman-init.sh" -set __fish_sdkman_noexport_init "$HOME/.config/fisher/github.com/reitzig/sdkman-for-fish/sdkman-noexport-init.sh" + +# Copied from https://github.com/jorgebucaran/fisher/blob/main/functions/fisher.fish to be consistent: +set --query fisher_path || set --local fisher_path $__fish_config_dir +set __fish_sdkman_noexport_init "$fisher_path/functions/__sdkman-noexport-init.sh" # Guard: SDKMAN! needs to be installed if not test -f "$__fish_sdkman_init"