Visual Studio集成终端bash错误(Visual Studio Integrated terminal bash error)
我正在尝试在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和终端正常工作。
I'm trying to use the integrated terminal in VCS but it doesn't like my bash_profile script.
I get the following errors (Added corresponding code) -
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"I'm not sure exactly why it's not working in VCS but works in Iterm2 and terminal fine.
最满意答案
你在你的设置中设置了"terminal.integrated.shellArgs.osx": ["-l"]所以它会运行你的bash_profile吗?
Did you set "terminal.integrated.shellArgs.osx": ["-l"] in your settings so it will run your bash_profile?
更多推荐
发布评论