Skip to content

Instantly share code, notes, and snippets.

@mariuszs
Created March 9, 2016 14:25
Show Gist options
  • Save mariuszs/2f76c351f788c61bdb4d to your computer and use it in GitHub Desktop.
Save mariuszs/2f76c351f788c61bdb4d to your computer and use it in GitHub Desktop.
sdkman 3.3.2+ with fishshell
# sdkman
set PATH $PATH (find ~/.sdkman/candidates/*/current/bin -maxdepth 0)
@filiagees
Copy link

filiagees commented Jun 21, 2020

Based on previous comments I'm using the follow (my installation is in a non-default location):

set SDKMAN_NUM_ENVS (ls $SDKMAN_DIR/candidates/ |wc -l)
if test $SDKMAN_NUM_ENVS -gt 0
        set PATH $PATH (find $SDKMAN_DIR/candidates/*/current/bin -maxdepth 0)
end

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment