We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 048045d commit 7af7157Copy full SHA for 7af7157
1 file changed
course/environment/install-environment.md
@@ -154,14 +154,14 @@ port install zig
154
2. 安装 asdf [Zig 插件](https://github.com/asdf-community/asdf-zig):
155
156
```bash
157
-asdf plugin-add zig https://github.com/asdf-community/asdf-zig.git
+asdf plugin add zig https://github.com/asdf-community/asdf-zig.git
158
```
159
160
3. 安装完成后,便可使用 asdf 管理 Zig 版本。以下是一些常用命令:
161
162
163
# 列举所有可安装的版本
164
-asdf list-all zig
+asdf list all zig
165
166
# 安装指定版本的 Zig
167
asdf install zig <version>
@@ -170,8 +170,8 @@ asdf install zig <version>
170
asdf uninstall zig <version>
171
172
# 设置全局默认版本,会写到 $HOME/.tool-versions 文件
173
-asdf global zig <version>
+asdf set -u zig <version>
174
175
# 设置当前目录使用的版本,会写到 $(pwd)/.tool-versions 文件
176
-asdf local zig <version>
+asdf set zig <version>
177
0 commit comments