Skip to content

Commit 44b066e

Browse files
simioluwatomihaoqunjiang
authored andcommitted
docs: add hints on aliasing winpty vue.cmd (#2666) [ci skip]
Always remembering to use the `winpty vue.cmd create hello-world` syntax to create vue projects is kind of clunky as that is not the default syntax; someone like me will often forget. Letting users know that they can alias the `winpty vue.cmd` command to something that feels more intuitive is better in my opinion.
1 parent 7d2b345 commit 44b066e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

docs/guide/creating-a-project.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ vue create hello-world
1010

1111
::: warning
1212
If you are on Windows using Git Bash with minTTY, the interactive prompts will not work. You must launch the command as `winpty vue.cmd create hello-world`.
13+
If you however want to still use the `vue create hello-world` syntax, you can alias the command by adding the following line to your `~/.bashrc` file.
14+
`alias vue='winpty vue.cmd'`
15+
You will need to restart your Git Bash terminal session to pull in the updated bashrc file.
1316
:::
1417

1518
You will be prompted to pick a preset. You can either choose the default preset which comes with a basic Babel + ESLint setup, or select "Manually select features" to pick the features you need.

0 commit comments

Comments
 (0)