dinogalactic

Using NVM (Node Version Manager) with Xonsh shell

To use nvm (Node Version Manager) with Xonsh shell, place the following in your .xonshrc:

# This ensures a stable symlink is always present for the currently
# activated Node version
$NVM_SYMLINK_CURRENT = "true" 
$NVM_DIR = f"{$HOME}/.nvm"
source-bash f"{$NVM_DIR}/nvm.sh"  # This loads nvm
# This ensures the current node is always used
$PATH.insert(0, f"{$NVM_DIR}/current/bin")