我正在尝试使用 VCS 中的集成终端,但它不喜欢我的 bash_profile
脚本。
我得到以下错误(添加了相应的代码)-
bash: parse_git_branch: command not found
parse_git_branch() {
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/'
}
bash: work: command not found
alias work="cd ./blah"
我不确定为什么它不能在 VCS 中工作,但在 Iterm2 和终端中工作正常。
最佳答案
您是否在设置中设置了 "terminal.integrated.shellArgs.osx": ["-l"]
以便它运行您的 bash_profile
?
关于bash - Visual Studio 集成终端 bash 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40426943/