Open jrock2004 opened 7 years ago
it works for me, in my dotfiles
fyi, you shouldn't have shebang that uses sh
in sourced rc files (e.g. #!/bin/sh
in your https://github.com/jrock2004/dotfiles/blob/5f72c864cd93a9f3a6f47e17deec0593fba47543/zsh/zplug.zsh)
that causes the sh
shell to be spawned and commands run in sh
instead of the current shell (your zsh
instance)
@davidosomething Are you specifying your node modules path in your dotfiles?
not manually - NVM does that when it is sourced by zsh
(your nvm is sourced by sh
)
@davidosomething Is that my issue? Because the way I am sourcing it?
that's my guess, you're sourcing a file that -spawns a shell and adds things to that spawned shell- instead of adding things directly into the current shell
@davidosomething I removed that from the file you listed above, so that is not the issue. Guess I will keep looking
Operating system and version: Arch Linux
nvm debug
output:nvm ls
output:How did you install
nvm
? (e.g. install script in readme, homebrew): install script in readmeWhat steps did you perform?
What happened? When echoing the PATH in vim, I am not seeing the directory for where the global apps are going. Outside of vim I see it. I am posting here because to be honest, looking at my zshrc I am not defining the path. I am guessing nvm does some type of magic
What did you expect to happen? I see the path for my global node modules
Is there anything in any of your profile files (
.bashrc
,.bash_profile
,.zshrc
, etc) that modifies thePATH
? Yes