mirror of
https://github.com/ethauvin/sdkman-for-fish.git
synced 2025-04-25 13:27:10 -07:00
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
This commit is contained in:
parent
6f855f1c87
commit
92a068dadc
4 changed files with 122 additions and 134 deletions
11
conf.d/sdk.fish
Normal file
11
conf.d/sdk.fish
Normal file
|
@ -0,0 +1,11 @@
|
|||
#!/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
|
Loading…
Add table
Add a link
Reference in a new issue