Skip to content

Commit fb99079

Browse files
9aoyanghaoqunjiang
authored andcommitted
docs(zh): add hints for bash alias on windows (#3231) [ci skip]
1 parent 4feaacf commit fb99079

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

docs/zh/guide/creating-a-project.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@ vue create hello-world
99
```
1010

1111
::: warning 警告
12-
如果你在 Windows 上通过 minTTY 使用 Git Bash,交互提示符并不工作。你必须通过 `winpty vue.cmd create hello-world` 启动这个命令。
12+
如果你在 Windows 上通过 minTTY 使用 Git Bash,交互提示符并不工作。你必须通过 `winpty vue.cmd create hello-world` 启动这个命令。不过,如果你仍想使用 `vue create hello-world`,则可以通过在 `~/.bashrc` 文件中添加以下行来为命令添加别名。
13+
`alias vue='winpty vue.cmd'`
14+
你需要重新启动 Git Bash 终端会话以使更新后的 bashrc 文件生效。
1315
:::
1416

1517
你会被提示选取一个 preset。你可以选默认的包含了基本的 Babel + ESLint 设置的 preset,也可以选“手动选择特性”来选取需要的特性。

0 commit comments

Comments
 (0)