VSCode Integrated Terminal Doesn't Load .bashrc or .bash_profile

后端 未结 4 1433
抹茶落季
抹茶落季 2020-12-17 10:16

I have the following files to handle shell configuration:

#~/.bash_profile
if [ -f ~/.bashrc ]; then
   source ~/.bashrc
fi

and

<         


        
4条回答
  •  清酒与你
    2020-12-17 11:05

    Another possible solution that just worked for me. The settings.json file (whcih you can access in File > Preferences > Settings > Features > terminal > Integrated > Automation Shell: Linux) had a parameter

        "terminal.integrated.inheritEnv": false
    

    set to false by default. Changing it to true fixed the problem in my case.

提交回复
热议问题