Felipe Santos
e557c9a22a
Add selfupdate_enable config and respect auto_answer when auto updating
...
This also deprecates the auto_selfupdate config.
2021-07-12 22:24:02 +01:00
Felipe Santos
b18d8aaacb
Fix config command when using vscode ( #926 )
2021-06-17 18:01:39 +02:00
Marco Vermeulen
2b7b15793b
Autoload compinit for ZSH completion.
2021-06-15 22:55:17 +01:00
Marco Vermeulen
290365a875
Do not enable auto-completion on unsupported shells.
2021-05-26 17:31:47 +01:00
Marco Vermeulen
46b14f05ce
Change date of all Apache 2.0 copyright headers.
2021-05-22 16:17:54 +01:00
Marco Vermeulen
1acab1efa1
Remove obsolete completion command function.
2021-05-22 16:14:32 +01:00
Marco Vermeulen
ad65159f69
Remove completion from help command.
2021-05-18 20:31:04 +01:00
Marco Vermeulen
2a87e8afbc
Source appropriate completion script if config enabled.
2021-05-18 20:29:50 +01:00
Marco Vermeulen
3ddf84c30c
Make completion command a dummy function.
...
This is to honour those who have:
`source <(sdk completion xxx)`
in their profile.
2021-05-18 20:29:19 +01:00
Oliver Weiler
c320fefc3a
Forgo all checks when running __sdk_completion ( #913 )
...
* Forgo all checks when running __sdk_completion
* Remove accidentally duplicated code
2021-05-17 20:55:17 +02:00
Joe Horsnell
cc571d30fc
Make the env install command set the shell versions ( #906 )
...
Fixes #905 .
2021-04-30 15:32:52 +02:00
Oliver Weiler
28317a9acc
Use match instead of BASH_REMATCH when using zsh ( #897 )
...
* Use match instead of BASH_REMATCH when using zsh
* Replace "conditional expression" with if-else
2021-04-22 16:33:17 +02:00
Marco Vermeulen
ca918e7b0f
Improve naming around UnitUtils.
2021-03-31 14:18:32 +01:00
Marco Vermeulen
444e84a952
Use single means of determining platform and removes FreeBSD test support.
2021-03-31 14:18:32 +01:00
Felipe Santos
1ea407c8e5
Fix update warn on new shells for update cmd ( #888 )
2021-03-31 11:43:30 +01:00
Oliver Weiler
7547946d94
Remove platform specific code, make tests more deterministic ( #889 )
...
* Remove platform-specific code for use command
* Remove platform-specific code for current command
* Make tests more deterministic
2021-03-31 10:01:16 +01:00
helpermethod
40f184411c
Remove unnecessary changes
2021-03-30 22:47:21 +01:00
helpermethod
e2fdf6bd44
Revert sdkman-use.sh to upstream/master
2021-03-30 22:47:21 +01:00
helpermethod
ffb9787124
Revert changes to sdkman-use.sh
2021-03-30 22:47:21 +01:00
helpermethod
1f617cbe75
Always use the uname stub
2021-03-30 22:47:21 +01:00
helpermethod
d2d2aee464
Only move setting the executable bit to the build method
2021-03-30 22:47:21 +01:00
helpermethod
eeda00a15b
Initialise uname stub in prepareIn but don't set executable bit
2021-03-30 22:47:21 +01:00
helpermethod
d275d945ae
Fix broken bugs on Mac OS X
2021-03-30 22:47:21 +01:00
Marco Vermeulen
e3c33d02bc
Add zsh completion.
2021-03-26 12:05:57 +00:00
Raphael
bceaaac6c0
Fix: always env clear when leaving dir ( #878 )
...
* Fix: always env clear when leaving dir
The previous logic did not clear the environment when the user switches between two directories with `.sdmanrc`.
Now we always clear (if an environment was set), and _then_ load the new one, if any.
* Add test for switching auto_env directories.
2021-03-04 13:32:25 +00:00
Marco Vermeulen
52cb0a6c7c
Fix broken tests on Mac OSX.
2021-02-21 15:04:18 +00:00
Oliver Weiler
f90f516e95
Add edit command to help output and Bash completion ( #875 )
...
* Add edit command to help output
* Add edit command to Bash completion
* Rename edit command to config
Co-authored-by: Oliver Weiler <oliver.weiler@meinestadt.de >
2021-02-17 19:28:24 +00:00
Oliver Weiler
ea1f67e950
Add edit command ( #874 )
...
* Add edit command
* Fix failing test
* Prevent EDITOR from being overwritten
* Split up error message
* Add missing test case
Co-authored-by: Oliver Weiler <oliver.weiler@meinestadt.de >
2021-02-16 20:58:29 +00:00
Marco Vermeulen
e88bb5131b
Further improvements to upgrade wording.
2021-02-13 21:49:24 +00:00
Marco Vermeulen
3682db3477
Improve wording of upgrade command.
2021-02-13 21:39:46 +00:00
Marco Vermeulen
97f166cc70
Improve output for default, home and use tips.
2021-02-13 21:15:43 +00:00
Marco Vermeulen
9e35cdb1b4
Revert "Synced error message with __sdkman_determine_version"
...
This reverts commit 750bea8b
2021-02-13 14:50:56 +00:00
Oliver Weiler
1fde6ae603
Redirect output to stderr
2021-02-04 17:14:46 +00:00
Oliver Weiler
cf83795bdd
Add contrib folder
2021-02-04 17:14:46 +00:00
Oliver Weiler
d8c17d3445
Remove completion for current
2021-02-04 17:14:46 +00:00
Oliver Weiler
a3f33560fd
Add instructions to sdk completion output on how to setup Bash completion
2021-02-04 17:14:46 +00:00
Oliver Weiler
54e9cd8efb
Make completion arguments mandatory
2021-02-04 17:14:46 +00:00
Oliver Weiler
dd4eeb7238
Remove exclamation mark
2021-02-04 17:14:46 +00:00
Oliver Weiler
39357899e1
Improve output for zsh
2021-02-04 17:14:46 +00:00
Oliver Weiler
a51cf5f118
Add shell identifier
2021-02-04 17:14:46 +00:00
Oliver Weiler
fed400ca75
Add completion subcommand to help output
2021-02-04 17:14:46 +00:00
Oliver Weiler
03ac5aca61
Indent completion function
2021-02-04 17:14:46 +00:00
Oliver Weiler
391c3f258b
Fix broken filename
2021-02-04 17:14:46 +00:00
Oliver Weiler
b257917e3a
Add completion subcommand
2021-02-04 17:14:46 +00:00
Gerry Tan
750bea8bd7
Synced error message with __sdkman_determine_version
2021-02-03 22:23:29 +00:00
Gerry Tan
617da42f37
Improved error message when candidate version not found
...
The message now adds an sdk install command to inform user how to correct the error.
This is useful when auto env is enabled, and user not aware their colleague has updated the candidate version.
See more discussion about this PR in this Slack thread: https://sdkman.slack.com/archives/CJK9DMV6V/p1611405973006900
2021-02-03 22:23:29 +00:00
Felipe Santos
7f177bc20d
Also fixes the mv commands
2021-02-03 20:24:09 +00:00
Felipe Santos
4dd4845533
Fix rm asking to remove file on some zsh
2021-02-03 20:24:09 +00:00
Oliver Weiler
fc1564242e
Fix wrong assertions
2021-02-03 20:20:08 +00:00
Oliver Weiler
520fb0d26a
Remove multiline flag
2021-02-03 20:20:08 +00:00