Skip to content

Commit

Permalink
[update]small changed
Browse files Browse the repository at this point in the history
  • Loading branch information
kenkenpa198 committed Apr 2, 2024
1 parent e15ae54 commit 4ac859a
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 33 deletions.
1 change: 0 additions & 1 deletion .config/zsh/env.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ export LS_COLORS='ow=01;32:ex=01;00:';
# https://github.com/nvm-sh/nvm?tab=readme-ov-file#git-install
export NVM_DIR="$HOME/.config/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


########################################
Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
!setup/linux/install-packages-from-yay.sh
!setup/linux/install-jekyll.sh
!setup/linux/install-language-pack-ja.sh
!setup/linux/install-node-js.sh
!setup/linux/install-nvm.sh
!setup/linux/install-pyenv.sh
!setup/linux/install-rbenv.sh
!setup/linux/install-scripts.sh
Expand Down
31 changes: 0 additions & 31 deletions setup/linux/install-node-js.sh

This file was deleted.

34 changes: 34 additions & 0 deletions setup/linux/install-nvm.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
#!/bin/bash

set -x
set -euo pipefail
bash "${HOME}/dotfiles/setup/linux/header.sh" "Run: $0"

# Node.js インストール
# https://github.com/nvm-sh/nvm?tab=readme-ov-file#install--update-script

function main {
cd

# 公式インストーラーを実行
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash
nvm --version

set +x
echo
echo "Finished: $0"
echo
echo "Please install Node.js:
echo
echo " $ nvm ls-remote"
echo " $ nvm install --lts"
echo " $ nvm install X.Y.Z"
echo " $ nvm ls"
echo
echo "Set global version and check:
echo
echo " $ nvm use X.Y.Z"
echo " $ node --version"
}

main

0 comments on commit 4ac859a

Please sign in to comment.