From 33e32fe515b380daccf2beb4cf4e52e47a7c0363 Mon Sep 17 00:00:00 2001 From: Hektor Misplon Date: Tue, 25 Oct 2022 20:57:14 +0200 Subject: [PATCH] Add nvm initialization --- .bashrc | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.bashrc b/.bashrc index 4c5b871..45617c5 100644 --- a/.bashrc +++ b/.bashrc @@ -81,6 +81,13 @@ fi # }}} # Node {{{ +# Move nvm folder away from home directory +export NVM_DIR="${XDG_CONFIG_HOME}/nvm" +# Pretty much what is in `/usr/share/nvm/init-nvm.sh` but we add the `--no-use` +# flag to `nvm.sh` to make it lazy +source /usr/share/nvm/nvm.sh --no-use +source /usr/share/nvm/bash_completion +source /usr/share/nvm/install-nvm-exec # }}} # Jupyter {{{