mirror of
https://github.com/ethauvin/sdkman-for-fish.git
synced 2025-04-25 05:17:11 -07:00
A little doc polish.
This commit is contained in:
parent
2f6b2dc1b6
commit
fb234a5e61
3 changed files with 17 additions and 5 deletions
|
@ -1,6 +1,7 @@
|
|||
# SDKMAN! for fish
|
||||
|
||||
Provides auto-completion for [SDKMAN!] and adds installed binaries to the PATH.
|
||||
Makes command `sdk` from [SDKMAN!] available in fish.
|
||||
Also provides auto-completion and adds binaries from installed SDKs to the PATH.
|
||||
|
||||
Tested with fish 2.7.1 and SDKMAN! 5.6.5.
|
||||
|
||||
|
@ -21,7 +22,7 @@ with `sdk` as you would expect.
|
|||
|
||||
* Completion originally by [Ted Wise](https://github.com/ctwise); see his
|
||||
[blog post from 2016](http://tedwise.com/2016/02/26/using-sdkman-with-the-fish-shell).
|
||||
* Binary loading by [Koala Yeung](https://github.com/yookoala);
|
||||
* Binary loading originally by [Koala Yeung](https://github.com/yookoala);
|
||||
see [his comment on sdkman/sdkman-cli#294](https://github.com/sdkman/sdkman-cli/issues/294#issuecomment-318252058).
|
||||
|
||||
[SDKMAN!]: https://github.com/sdkman/sdkman-cli
|
||||
|
|
|
@ -1,4 +1,8 @@
|
|||
# sdkman autocompletion
|
||||
# Defines autocompletion for SDKMAN!
|
||||
|
||||
# Copyright (c) 2018 Raphael Reitzig
|
||||
# MIT License (MIT)
|
||||
# https://github.com/reitzig/sdkman-for-fish
|
||||
|
||||
# # # # # #
|
||||
# Completion trigger predicates
|
||||
|
@ -152,4 +156,4 @@ complete -c sdk -f -n '__fish_sdkman_command_has_enough_parameters 0 update' # b
|
|||
# flush
|
||||
complete -c sdk -f -n '__fish_sdkman_no_command' -a 'flush' -d 'Clear out cache'
|
||||
complete -c sdk -f -n '__fish_sdkman_using_command flush' -a 'broadcast archives temp'
|
||||
complete -c sdk -f -n '__fish_sdkman_command_has_enough_parameters 1 flush' # block
|
||||
complete -c sdk -f -n '__fish_sdkman_command_has_enough_parameters 1 flush' # block
|
||||
|
|
|
@ -1,5 +1,12 @@
|
|||
#!/usr/bin/fish
|
||||
|
||||
# Makes command and binaries from SDKMAN! available in fish.
|
||||
# Delegates to bash for the `sdk` command.
|
||||
|
||||
# Copyright (c) 2018 Raphael Reitzig
|
||||
# MIT License (MIT)
|
||||
# https://github.com/reitzig/sdkman-for-fish
|
||||
|
||||
set sdkman_init "$HOME/.sdkman/bin/sdkman-init.sh"
|
||||
|
||||
if test -f "$sdkman_init"
|
||||
|
@ -12,4 +19,4 @@ if test -f "$sdkman_init"
|
|||
function sdk
|
||||
bash -c "source $sdkman_init && sdk $argv"
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue