4 ms·
The NVM init slowness issue isn't specific to WSL - see https://github.com/creationix/nvm/issues/1277 https://github.com/creationix/nvm/issues/1277. I also had
by jameshiew 8y ago
The NVM init slowness issue isn't specific to WSL - see https://github.com/creationix/nvm/issues/1277 https://github.com/creationix/nvm/issues/1277. I also had to sandbox the NVM init lines (on macOS) as timing my .bashrc revealed it as the worst offender.
On the topic of speeding up terminal startup, I can recommend https://github.com/benvan/sandboxd https://github.com/benvan/sandboxd for managing various shell initialization scripts to only be run or sourced at the point where they are needed.
- godot 8y agoNotably, I have NVM setup to auto init on a work MBP and two personal Linux laptops before, on Antergos (Arch) and CentOS (on a very old and slow laptop even), and terminal startup time is still near instant in all cases. Issue was definitely isolated to WSL in my experience.