sdkman-for-fish/conf.d/sdk.fish
Raphael Reitzig 92a068dadc Adapts to current sdkman; improvements.
- All commands now don't tab-complete after the maximum
   number of parameters.
 - Specifies aliases in a more compact way.
 - Adds commands update, upgrade.
 - Removes some dead code.

Fixes issues #1, #2, #5
2018-07-11 23:03:16 +02:00

11 lines
No EOL
213 B
Fish

#!/usr/bin/fish
# sdk command
function sdk
bash -c "source $HOME/.sdkman/bin/sdkman-init.sh && sdk $argv"
end
# add paths
for ITEM in $HOME/.sdkman/candidates/* ;
set -gx PATH $PATH $ITEM/current/bin
end