Visual Studio集成终端bash错误(Visual Studio Integrated terminal bash error)

编程入门 行业动态 更新时间:2024-10-27 04:34:05
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?

更多推荐

本文发布于:2023-07-26 02:11:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1269559.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:终端   错误   Visual   Studio   bash

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!