From bcabcfcdb1a96b1e988c7019be59e46fd92ef161 Mon Sep 17 00:00:00 2001 From: Aminda Suomalainen Date: Sat, 6 Jul 2024 08:35:13 +0300 Subject: [PATCH] rc/{bash,zsh}rc: add nvm --- rc/bashrc | 6 ++++++ rc/zshrc | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/rc/bashrc b/rc/bashrc index 504ed59f..b540e4d4 100755 --- a/rc/bashrc +++ b/rc/bashrc @@ -268,6 +268,12 @@ export LOCALDOMAIN=. # regardless of whether DNSSEC=true or not. export RES_OPTIONS="timeout:2 attempts:2 rotate edns0 trust-ad" +# https://github.com/nvm-sh/nvm +if [ -d ~/.nvm ]; then + . ~/.nvm/nvm.sh + . ~/.nvm/bash_completition +fi + # https://github.com/nodenv/nodenv if [ -d ~/.nodenv/bin ]; then PATH="$HOME/.nodenv/bin:$PATH" diff --git a/rc/zshrc b/rc/zshrc index 1aee9b18..c202b2f3 100755 --- a/rc/zshrc +++ b/rc/zshrc @@ -234,6 +234,12 @@ export LOCALDOMAIN=. # regardless of whether DNSSEC=true or not. export RES_OPTIONS="timeout:2 attempts:2 rotate edns0 trust-ad" +# https://github.com/nvm-sh/nvm +if [ -d ~/.nvm ]; then + . ~/.nvm/nvm.sh + . ~/.nvm/bash_completion +fi + # https://github.com/nodenv/nodenv if [ -d ~/.nodenv/bin ]; then PATH="$HOME/.nodenv/bin:$PATH"