Skip to content

Instantly share code, notes, and snippets.

@LeeDDHH
Last active November 26, 2020 05:58
Show Gist options
  • Save LeeDDHH/3427c8ea24ebdaf2c4fc8ac866803236 to your computer and use it in GitHub Desktop.
Save LeeDDHH/3427c8ea24ebdaf2c4fc8ac866803236 to your computer and use it in GitHub Desktop.
mac 環境構築

homebrewをインストール

ターミナルでインストール /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

開発用アプリのインストール

brew install caskroom/cask/brew-cask
brew cask install iterm2
brew cask install visual-studio-code
brew cask install coteditor

brew install nodebrew

App StoreからXcodeをインストールする

nodebrewを設定

vi ~/.zshrc

↓(以下を記載)

export PATH=$HOME/.nodebrew/current/bin:$PATH

source ~/.zshrc
nodebrew setup
nodebrew ls-remote
nodebrew install-binary {バージョンを指定}
nodebrew use {バージョンを指定}
node -v
npm -v

GithubをSSHで接続

mkdir ~/.ssh
cd ~/.ssh
ssh-keygen -t rsa
pbcopy < ~/.ssh/id_rsa.pub

SSH key 設定画面で公開鍵を登録する

SSH接続を確認する

ssh -T git@github.com

sshのconfigを設定

vi ~/.ssh/config

↓(以下を記載)

Host *
  AddKeysToAgent yes
  UseKeyChain yes

Host github
  Host github.com
  IdentityFile ~/.ssh/id_rsa
  User git
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment