Skip to content

Commit 9f885be

Browse files
committed
Change code block lang (shell -> console) for interactive commands
1 parent 4989efa commit 9f885be

File tree

12 files changed

+80
-80
lines changed

12 files changed

+80
-80
lines changed

docs/Ch01/supplement.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -520,7 +520,7 @@ $ sudo apt-get install ubuntu-desktop
520520
* 使用 Ubuntu 22.04 或 22.10:目前只有部分 daily build 版本可用。
521521
* 在 Ubuntu 20.04 上**禁用 Wayland**:
522522

523-
```bash
523+
```console
524524
$ sudo nano /etc/gdm3/custom.conf
525525
```
526526

@@ -532,7 +532,7 @@ $ sudo apt-get install ubuntu-desktop
532532

533533
接下来自行通过 HWE 升级 Ubuntu 20.04 的内核至 5.15:
534534

535-
```bash
535+
```console
536536
$ sudo apt install --install-recommends linux-generic-hwe-20.04
537537
```
538538

docs/Ch02/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -412,7 +412,7 @@ $ sh run.sh
412412

413413
使用以下命令安装(软件的安装将在[第三章](../Ch03/index.md)详细介绍):
414414

415-
```shell
415+
```console
416416
$ sudo apt install cmatrix
417417
```
418418

@@ -552,7 +552,7 @@ $ sudo bash wordpress.sh
552552

553553
在本节之前的版本中,以上的命令是:
554554

555-
```shell
555+
```console
556556
$ curl -fsSL https://101.lug.ustc.edu.cn/Ch02/wordpress.sh | sudo bash
557557
```
558558

docs/Ch02/supplement.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ $ sudo reboot
4242

4343
同理,如果你喜欢 KDE plasma 桌面,只需要执行
4444

45-
```shell
45+
```console
4646
$ sudo apt install kde-plasma-desktop
4747
$ sudo reboot
4848
```
@@ -156,7 +156,7 @@ $ gnome-tweaks
156156

157157
再安装本地连接器:
158158

159-
```shell
159+
```console
160160
$ sudo apt install chrome-gnome-shell
161161
```
162162

@@ -202,7 +202,7 @@ $ gnome-tweaks
202202

203203
命令行进入下载好的安装包所在文件夹,输入以下命令。注意替换「下载的包」为你的安装包名,例如如果下载的安装包名为 `ocs-url_3.1.0-0ubuntu1_amd64.deb`,则 `install` 后面的参数为 `./ocs-url_3.1.0-0ubuntu1_amd64.deb`。
204204

205-
```shell
205+
```console
206206
$ sudo apt install ./下载的包.deb
207207
```
208208

@@ -258,7 +258,7 @@ $ sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/t
258258

259259
如果遇到了网络连通性问题,可以使用以下替换命令:
260260

261-
```shell
261+
```console
262262
$ REMOTE=https://mirrors.tuna.tsinghua.edu.cn/git/ohmyzsh.git sh -c "$(curl -fsSL https://mirrors.ustc.edu.cn/misc/ohmyzsh-install.sh)"
263263
```
264264

@@ -299,7 +299,7 @@ $ sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/t
299299

300300
当我们登录用户成功时:
301301

302-
```shell
302+
```console
303303
$ sudo login
304304
```
305305

@@ -340,7 +340,7 @@ $ sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/t
340340

341341
然后:
342342

343-
```shell
343+
```console
344344
$ sudo chmod +x /etc/update-motd.d/99-test
345345
```
346346

0 commit comments

Comments
 (0)