@@ -2,15 +2,16 @@ import Tabs from '@theme/Tabs';
2
2
import TabItem from ' @theme/TabItem' ;
3
3
import SectionAbout from " ../src/components/SectionAbout"
4
4
import DownloadButton from " ../src/components/DownloadButton"
5
+ import {currentOs } from " ../src/components/osUtils" ;
5
6
6
7
<SectionAbout title = " Advanced Installation" >
7
8
<div class = " margin--lg" />
8
9
<Tabs
9
10
groupId = " operating-systems-specific"
10
- defaultValue = " windows "
11
+ defaultValue = { currentOs () }
11
12
values = { [
12
13
{label: ' Windows' , value: ' windows' },
13
- {label: ' MacOs' , value: ' macOs ' },
14
+ {label: ' MacOs' , value: ' mac ' },
14
15
{label: ' Linux' , value: ' linux' },
15
16
]}
16
17
/>
@@ -22,10 +23,10 @@ Pick the installation method:
22
23
23
24
<Tabs
24
25
groupId = " operating-systems-specific"
25
- defaultValue = " windows "
26
+ defaultValue = { currentOs () }
26
27
values = { [
27
28
{label: ' Windows' , value: ' windows' },
28
- {label: ' MacOs' , value: ' macOs ' },
29
+ {label: ' MacOs' , value: ' mac ' },
29
30
{label: ' Linux' , value: ' linux' },
30
31
]}
31
32
>
@@ -180,11 +181,11 @@ Download MSI installer with Scala CLI for Windows
180
181
</Tabs >
181
182
182
183
</TabItem >
183
- <TabItem value = " macOs " >
184
+ <TabItem value = " mac " >
184
185
185
186
<Tabs
186
- groupId = " macOs "
187
- defaultValue = " manual "
187
+ groupId = " mac "
188
+ defaultValue = " brew "
188
189
values = { [
189
190
{label: ' Manual' , value: ' manual' },
190
191
{label: ' Installer' , value: ' installer' },
@@ -233,7 +234,7 @@ brew install Virtuslab/scala-cli/scala-cli
233
234
<SectionAbout title = " Standalone launcher" >
234
235
<div class = " margin--lg" />
235
236
<Tabs
236
- defaultValue = " macOS/Linux"
237
+ defaultValue = { currentOs () == ' win ' ? ' windows ' : ' macOS/Linux' }
237
238
groupId = " specific-standalone-launcher"
238
239
values = { [
239
240
{label: ' macOS/Linux' , value: ' macOS/Linux' },
@@ -269,7 +270,7 @@ Script to automatically download and cache standalone `scala-cli` launcher.
269
270
<SectionAbout title = " Shell completions" >
270
271
<div class = " margin--lg" />
271
272
<Tabs
272
- defaultValue = " bash"
273
+ defaultValue = { currentOs () == ' mac ' ? ' zsh ' : ' bash' }
273
274
groupId = " shell-specific"
274
275
values = { [
275
276
{label: ' Bash' , value: ' bash' },
@@ -294,8 +295,7 @@ scala-cli install completions
294
295
295
296
If any of the ` scala-cli install completions ` command complained that your shell cannot be determined, specify it
296
297
with ` --shell `
297
- <Tabs groupId = " shell-specific"
298
- defaultValue = " bash"
298
+ <Tabs groupId = " shell-specific"
299
299
values = { [
300
300
{label: ' Bash' , value: ' bash' },
301
301
{label: ' zsh' , value: ' zsh' },
0 commit comments