Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio Integrated terminal bash error

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.

like image 576
Steven_Harris_ Avatar asked Jul 27 '26 23:07

Steven_Harris_


1 Answers

Did you set "terminal.integrated.shellArgs.osx": ["-l"] in your settings so it will run your bash_profile?

like image 190
Rob Lourens Avatar answered Jul 29 '26 18:07

Rob Lourens



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!