mirror of
https://github.com/ethauvin/sdkman-for-fish.git
synced 2025-04-25 13:27:10 -07:00
- 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
11 lines
No EOL
213 B
Fish
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 |