{bash,zsh}rc: add pyenv & rbenv

This commit is contained in:
Aminda Suomalainen 2024-07-06 09:01:48 +03:00
parent 84df897758
commit a0f5a327b5
Signed by: Mikaela
SSH Key Fingerprint: SHA256:CXLULpqNBdUKB6E6fLA1b/4SzG0HvKD19PbIePU175Q
2 changed files with 24 additions and 0 deletions

View File

@ -274,6 +274,18 @@ if [ -d ~/.nvm ]; then
. ~/.nvm/bash_completition . ~/.nvm/bash_completition
fi fi
# https://github.com/rbenv/rbenv
if [ -d ~/.rbenv/bin ]; then
PATH="$HOME/.rbenv/bin:$PATH"
rbenv init > /dev/null 2>&1
fi
# https://github.com/pyenv/pyenv
if [ -d ~/.pyenv/bin ]; then
PATH="$HOME/.pyenv/bin:$PATH"
pyenv init > /dev/null 2>&1
fi
# https://github.com/nodenv/nodenv # https://github.com/nodenv/nodenv
if [ -d ~/.nodenv/bin ]; then if [ -d ~/.nodenv/bin ]; then
PATH="$HOME/.nodenv/bin:$PATH" PATH="$HOME/.nodenv/bin:$PATH"

View File

@ -240,6 +240,18 @@ if [ -d ~/.nvm ]; then
. ~/.nvm/bash_completion . ~/.nvm/bash_completion
fi fi
# https://github.com/rbenv/rbenv
if [ -d ~/.rbenv/bin ]; then
PATH="$HOME/.rbenv/bin:$PATH"
rbenv init >/dev/null 2>&1
fi
# https://github.com/pyenv/pyenv
if [ -d ~/.pyenv/bin ]; then
PATH="$HOME/.pyenv/bin:$PATH"
pyenv init >/dev/null 2>&1
fi
# https://github.com/nodenv/nodenv # https://github.com/nodenv/nodenv
if [ -d ~/.nodenv/bin ]; then if [ -d ~/.nodenv/bin ]; then
PATH="$HOME/.nodenv/bin:$PATH" PATH="$HOME/.nodenv/bin:$PATH"