16

Using VS Code's new Remote SSH feature, how do I modify the PATH environment variable for its terminal? I've ssh'd into an Ubuntu 16.04 VM and it is not picking up /etc/profile or ~/.bash_profile.

enter image description here

After opening the terminal, I can . ~/.bash_profile, but I want something like that to happen automatically.

HaaLeo
  • 10,065
  • 3
  • 44
  • 55
Cameron Taggart
  • 5,771
  • 4
  • 45
  • 70
  • 2
    I'm using Ubuntu 18.04. I modified the path in ~/.bashrc and it worked. – Peter Gloor May 22 '19 at 12:46
  • See https://stackoverflow.com/questions/43983718/set-global-path-environment-variable-in-vs-code for a similar question and more answers. – P.T. Dec 30 '20 at 19:11

1 Answers1

14

You should use this command in command line (F1 or ctrl+shift+p): Remote-SSH: Kill VS Code Server on Host, which let the vscode server to restart and reload you config.

yulong_dreamer
  • 156
  • 2
  • 5