News for hackers. Stuff that matters.
Re:s/bash/zsh/g by rustyminnow on Wednesday October 20, 2021 @01:28PM (#28933381)
Nvm startup times are the worst. I use it to install npm versions, but then manually add those to my $PATH.

There's a --no-use flag that short-circuits all the heavy startup processing, but still gives you access to the command.

Here's a snippet from my zshrc: ``` export NVM_DIR="$HOME/.nvm" [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" --no-use export PATH="$HOME/.nvm/versions/node/v14.17.6/bin:$PATH" ```

There are no comments on this comment yet.