This commit is contained in:
2024-09-21 00:31:30 +04:00
parent a4c819a30b
commit 484e10675e
15 changed files with 654 additions and 158 deletions

View File

@@ -7,3 +7,13 @@ use_ruby() {
check_env() {
local ret=0; for var in "$@"; do [[ -v $var ]] || { echo "$var is missing"; ret=1; }; done; return $ret;
}
use_nvm() {
local node_version=$1
nvm_sh=~/.config/nvm/nvm.sh
if [[ -e $nvm_sh ]]; then
source $nvm_sh
nvm use $node_version
fi
}