{bash,zsh}rc: add nodenv support

This commit is contained in:
Aminda Suomalainen 2024-07-06 08:16:06 +03:00
parent 4fc9eb6281
commit df935f9084
Signed by: Mikaela
SSH Key Fingerprint: SHA256:CXLULpqNBdUKB6E6fLA1b/4SzG0HvKD19PbIePU175Q
2 changed files with 16 additions and 0 deletions

View File

@ -268,6 +268,14 @@ export LOCALDOMAIN=.
# regardless of whether DNSSEC=true or not.
export RES_OPTIONS="timeout:2 attempts:2 rotate edns0 trust-ad"
# https://github.com/nodenv/nodenv
if [ -d ~/.nodenv/bin ]; then
PATH="$HOME/.nodenv/bin:$PATH"
eval "$(nodenv init - bash)"
# Remember! And verify it before running!
# git clone https://github.com/nodenv/node-build.git "$(nodenv root)"/plugins/node-build
fi
##### Aliases RJ706I #####
# To get sudo work with aliases.

View File

@ -234,6 +234,14 @@ export LOCALDOMAIN=.
# regardless of whether DNSSEC=true or not.
export RES_OPTIONS="timeout:2 attempts:2 rotate edns0 trust-ad"
# https://github.com/nodenv/nodenv
if [ -d ~/.nodenv/bin ]; then
PATH="$HOME/.nodenv/bin:$PATH"
eval "$(nodenv init - zsh)"
# Remember! And verify it before running!
# git clone https://github.com/nodenv/node-build.git "$(nodenv root)"/plugins/node-build
fi
##### Aliases RJ706I #####
# To get sudo work with aliases.