2016-11-04 50 views
1

我试图在VCS中使用集成终端,但它不像我的bash_profile脚本。Visual Studio集成的终端bash错误

我收到以下错误(由相应的代码) -

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和终端精细的作品。

回答

3

您是否在您的设置中设置了"terminal.integrated.shellArgs.osx": ["-l"],因此它会运行您的bash_profile