bash: move nvm/rbenv/yarn to bashrc.d

This commit is contained in:
2023-01-14 23:30:12 +00:00
parent 92eb7ffc87
commit a76c488bbc
4 changed files with 7 additions and 2 deletions

View File

@@ -0,0 +1 @@
eval "`dircolors -b ~/.dircolors`"

3
bashrc.d/nvm.bash Normal file
View File

@@ -0,0 +1,3 @@
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion

View File

@@ -1,4 +1,4 @@
if [ -f "$HOME/.rbenv/bin/rbenv" ] ; then if [ -f "$HOME/.rbenv/bin/rbenv" ] ; then
eval "$($HOME/.rbenv/bin/rbenv init - bash)" addpath $HOME/.rbenv/bin
eval "$($HOME/.rbenv/bin/rbenv init - bash)"
fi fi

1
bashrc.d/yarn.bash Normal file
View File

@@ -0,0 +1 @@
export PATH="$HOME/.yarn/bin:$HOME/.config/yarn/global/node_modules/.bin:$PATH"