0、安裝git,可以運行bash,應該是linux的powershell腳本
1、
參考 https://juejin.cn/post/6844904051868450823
sh __git_ps1 command not found windows git-bash報錯

2、說明
上面截圖的 bash.bashrc 目錄是
E:\Program Files\Git\etc\bash.bashrc
上面截圖的 git-prompt.sh 目錄是
E:\Program Files\Git\etc\profile.d\ git-prompt.sh
3、寫一個helloworld測試
#!/bin/bash echo "Hello World !"

