# git bash交互提示符不工作

## 起因

最近要写小程序，于是从 `deepin` 切回了 `window 10` ，安装了最新的 `vue-cli` ，然后按照 `uniapp` 文档初始化 `uni` 项目选择配置时，发现 `git bash` 交互提示符不工作，无法上下移动

## 结果

通过搜索引擎查询关键词发现 `vue-cli` 官方有如下一段解释

![提示](https://github.com/ougege/blog/blob/master/Images/Windows/gitbash交互提示符不工作/tip_1.jpg)

```shell
# 进入git安装目录
gedit /etc/bash.bashrc

# 在文件自后一行加上自定义指令
alias vue='winpty vue.cmd'
```

## 参考

1. [Vue CLI](https://cli.vuejs.org/zh/guide/creating-a-project.html#vue-create)
2. [Vue CLI 3.X 在windows中使用Git Bash创建项目时，出现交互提示符不工作的问题](https://blog.csdn.net/weixin_30491641/article/details/95805300?spm=1001.2101.3001.6650.1\&utm_medium=distribute.pc_relevant.none-task-blog-2%7Edefault%7ECTRLIST%7ERate-1.pc_relevant_paycolumn_v3\&depth_1-utm_source=distribute.pc_relevant.none-task-blog-2%7Edefault%7ECTRLIST%7ERate-1.pc_relevant_paycolumn_v3\&utm_relevant_index=2)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://ougege.gitbook.io/blog/docs/articles/windows/git-bash-jiao-hu-ti-shi-fu-bu-gong-zuo.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
