Skip to content

Commit 7af7157

Browse files
committed
chore: 更新 asdf 插件
1 parent 048045d commit 7af7157

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

course/environment/install-environment.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -154,14 +154,14 @@ port install zig
154154
2. 安装 asdf [Zig 插件](https://github.com/asdf-community/asdf-zig)
155155

156156
```bash
157-
asdf plugin-add zig https://github.com/asdf-community/asdf-zig.git
157+
asdf plugin add zig https://github.com/asdf-community/asdf-zig.git
158158
```
159159

160160
3. 安装完成后,便可使用 asdf 管理 Zig 版本。以下是一些常用命令:
161161

162162
```bash
163163
# 列举所有可安装的版本
164-
asdf list-all zig
164+
asdf list all zig
165165

166166
# 安装指定版本的 Zig
167167
asdf install zig <version>
@@ -170,8 +170,8 @@ asdf install zig <version>
170170
asdf uninstall zig <version>
171171

172172
# 设置全局默认版本,会写到 $HOME/.tool-versions 文件
173-
asdf global zig <version>
173+
asdf set -u zig <version>
174174

175175
# 设置当前目录使用的版本,会写到 $(pwd)/.tool-versions 文件
176-
asdf local zig <version>
176+
asdf set zig <version>
177177
```

0 commit comments

Comments
 (0)