FabioAntunes / fish-nvm

nvm wrapper for fish-shell
MIT License
511 stars 20 forks source link

Fix: osx PATH on sub shells #44

Closed FabioAntunes closed 4 years ago

FabioAntunes commented 4 years ago

When using fish-nvm on OSX with subshells the PATH get's re ordered. This is something than happens with OSX only, more info regarding that https://github.com/fish-shell/fish-shell/pull/5956

This PR checks if there's a nvm path in $PATH if there is and i's not the first element remove it and pre append to the list again.