I'm trying to configure the $PATH env variable of vim's internal shell.
I have commands that update the $PATH several times during a session. I see that vim inherits my shell's first $PATH - but not updated $PATH variables.
Some things that might be helpful:
- I open vim multiple times - with changes to $PATH in between
- The internal shell does source cshrc every time I launch the internal shell
- Sourcing cshrc on the main shell doesn't change $PATH
-- update So the problem is because the .cshrc file. It does some initial setting up where the path gets reset. Launching a new shell within the current shell resets $PATH. I'll have to figure out a way to go around this.
I'm using tcsh on a redhat machine. Any clue why this is happening and how to fix this?