You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+15-10Lines changed: 15 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -72,13 +72,13 @@ You may notice a `[user]` or `[global]` prefix in the output, which indicates th
72
72
73
73
### Show `swiftbox` version
74
74
75
-
Both `swiftbox`amd system (or alias) version will be shown with `-v` or `--version`. Add `-s` or `--short` to omit system version.
75
+
`swiftbox`(and system alias) version will be shown with `-v` or `--version`.
76
76
77
77
```console
78
78
$ swiftbox --version
79
-
0.12.3 (Ubuntu 20.04)
80
-
$ swiftbox -v -s
81
79
0.12.3
80
+
$ swiftbox -v
81
+
0.12.3 (Ubuntu 20.04)
82
82
```
83
83
84
84
### Check the availability of Swift versions
@@ -122,14 +122,14 @@ $ sudo swiftbox close
122
122
123
123
### List local toolchain versions
124
124
125
-
The active one is marked with `*`. System versions will also be shown, and you can use `-s` or `--short` to omit.
125
+
The active one is marked with `*`. If the toolchain version does not match your system version, its platform version will also be shown.
126
126
127
127
```console
128
128
$ swiftbox list
129
-
- 2020-05-10-a (Ubuntu 20.04)
129
+
- 2020-05-10-a
130
130
- 4.2.1 (Ubuntu 18.04)
131
-
* 5.2.2 (Ubuntu 20.04)
132
-
$ sudo swiftbox list -s
131
+
* 5.2.2
132
+
$ sudo swiftbox list
133
133
- 2020-04-03-a
134
134
- 4.3
135
135
```
@@ -184,11 +184,9 @@ Commands:
184
184
185
185
### Alias your system version in `swiftbox`
186
186
187
-
Since Ubuntu has non-LTS versions and they may be (partially) compatible with toolchains built for LTS versions, `swiftbox` allows aliases (See #1) by specifying the version in `.system-alias` file in its working directory.
187
+
Since Ubuntu has non-LTS versions and they may be (partially) compatible with toolchains built for LTS versions, `swiftbox` allows long-term aliases (See #1) by specifying the version in `.system-alias` file in its working directory.
188
188
189
189
```console
190
-
$ swiftbox -v
191
-
0.12.3 (Ubuntu 19.10)
192
190
$ echo"20.04">~/.swiftbox/.system-alias
193
191
$ swiftbox -v
194
192
0.12.3 (Ubuntu 20.04)
@@ -197,6 +195,13 @@ Swift 5.2.4 is available for Ubuntu 20.04
197
195
You can get it with: swiftbox get 5.2.4
198
196
```
199
197
198
+
For one-time alias, use environmental variable `$SWIFTBOX_SYSALIAS` instead:
0 commit comments