1
I am trying to set a path in my $PATH
:
/home/ryan/.nvm/versions/node/v9.6.1/bin
When I echo $PATH
it is there, but when I open vscode
, and check the process.env.PATH
it isn't there. I am not sure why it is there in the bash, but not in the editor. This is causing issues when running tasks in the editor.
I do see that this is in both the bash and the editor:
/usr/lib/jvm/java-8-oracle/jre/bin
So, what would be the best way to find where that is set? I am thinking that if I set the first path in the same location that it should be in both the editor and bash.
I have that in my
.bashrc
. I copied it to my.profile
, and it still only displays in the bash, and not the editor.export PATH="/home/ryan/.nvm/versions/node/v9.6.1/bin:$PATH"
– Get Off My Lawn – 2018-03-02T23:43:25.060How are you loading your editor ? It seems like its not being launched from your bash shell ? – davidgo – 2018-03-02T23:46:20.247
no, I am launching it from the desktop (gnome 3) it is saved in my favorites, and
dash to dock
is where I click – Get Off My Lawn – 2018-03-02T23:51:39.773If I launch the editor from the bash
code ./path/to/dir
it loads the proper$PATH
– Get Off My Lawn – 2018-03-02T23:53:09.437??? I'm guessing if you launch it from bash it works ??? Your problem is that the path is not being altered in the parent (ie gnome 3). – davidgo – 2018-03-02T23:54:26.643
I've never tried it, but try creating an executable .gnomerc file which exports your path, then log out and log in again. – davidgo – 2018-03-02T23:56:37.327
Creating a
.gnomerc
worked! – Get Off My Lawn – 2018-03-03T00:02:03.427You should update the answer so I can accept it :) – Get Off My Lawn – 2018-03-05T16:24:14.040
@GetOffMyLawn - Ta. – davidgo – 2018-03-05T20:07:17.853