mirror of
https://github.com/ethauvin/sdkman-for-fish.git
synced 2025-04-25 05:17:11 -07:00
Implements a nasty hack for issue #19: mangle sdkman-init.
This commit is contained in:
parent
ba46492522
commit
88c81dc479
3 changed files with 18 additions and 9 deletions
|
@ -1,11 +1,11 @@
|
|||
set sdkman_init "$HOME/.sdkman/bin/sdkman-init.sh"
|
||||
|
||||
# Guard: SDKMAN! needs to be installed
|
||||
if not test -f "$sdkman_init"
|
||||
if not test -f "$__fish_sdkman_init"
|
||||
exit 0
|
||||
end
|
||||
|
||||
# Declare the sdk command for fish
|
||||
function sdk -d "Manage SDKs"
|
||||
__fish_sdkman_run_in_bash "source $sdkman_init && sdk $argv"
|
||||
__fish_sdkman_run_in_bash "source \"$__fish_sdkman_noexport_init\" && sdk $argv"
|
||||
# __fish_sdkman_run_in_bash "source \"$__fish_sdkman_init\" && sdk $argv"
|
||||
# --> issue #19
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue