84669 person learning
152542 person learning
20005 person learning
5487 person learning
7821 person learning
359900 person learning
3350 person learning
180660 person learning
48569 person learning
18603 person learning
40936 person learning
1549 person learning
1183 person learning
32909 person learning
在使用set命令设置docker的环境变量,然后gitbash一直报sh: __git_ps1: command not found。
docker
gitbash
sh: __git_ps1: command not found
搜索了一番,并没有相似的解决办法。
If you find inspiration on stackoverflow, just go gitbash的安装目录Gitetc搜寻了一番,找到了如下文件:bash.bashrc
Gitetc
bash.bashrc
There is such a line in it
# Set a default prompt of: user@host, MSYSTEM variable, and current_directory # PS1='\[\e]0;\w\a\]\n\[\e[32m\]\u@\h \[\e[35m\]$MSYSTEM\[\e[0m\] \[\e[33m\]\w\[\e[0m\]\n$ '
I removed the # in front of PS1 and then entered sh, and no error was reported
PS1
If you find inspiration on stackoverflow, just go
gitbash
的安装目录Gitetc
搜寻了一番,找到了如下文件:bash.bashrc
There is such a line in it
I removed the # in front of
PS1
and then entered sh, and no error was reported