💻
Mac買い替えたのでセットアップ
MacBook を買い替えたので、セットアップをしたので、記録を残す。
XCode
xcode-select --installsudo xcodebuild -license
Homebrew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> ~/.zprofileeval "$(/opt/homebrew/bin/brew shellenv)"
terminal
brew install --cask font-myrica font-myricambrew install --cask font-hack-nerd-fontbrew install starshipecho 'eval "$(starship init zsh)"' >> ~/.zprofilemkdir -p ~/.configvim ~/.config/starship.tomltouch ~/.zshrc
ツール
brew install sedbrew install grepbrew install gitbrew install visual-studio-codebrew install --cask dockerbrew install --cask chatworkbrew install notionbrew install zoombrew install ffmpegbrew install openapi-generatorbrew install --cask deeplbrew install --cask dropbox
補完
brew install zsh-completions
cat << EOF >> ~/.zprofile
if type brew &>/dev/null; then
FPATH=$(brew --prefix)/share/zsh/site-functions:$FPATH
autoload -Uz compinit
compinit
fi
EOF
言語
node
brew install nodenvecho 'eval "$(nodenv init -)"' >> ~/.zprofile
PHP8 系
brew install php@8.4brew install php@8.1echo 'alias php81="brew unlink php && brew link --force --overwrite php@8.1"' >> ~/.zshrcecho 'alias php84="brew unlink php && brew link --force --overwrite php@8.4"' >> ~/.zshrcbrew install composer
PHP7 系
brew tap shivammathur/phpbrew install shivammathur/php/php@7.2brew install shivammathur/php/php@7.4echo 'alias php72="brew unlink php && brew unlink php@7.2 && brew link --force --overwrite php@7.2"' >> ~/.zshrcecho 'alias php74="brew unlink php && brew unlink php@7.4 && brew link --force --overwrite php@7.4"' >> ~/.zshrc
Ruby
brew install rbenv
Python
brew install pyenvecho 'export PYENV_ROOT="$HOME/.pyenv"' >> ~/.zprofileecho 'command -v pyenv >/dev/null || export PATH="$PYENV_ROOT/bin:$PATH"' >> ~/.zprofileecho 'eval "$(pyenv init -)"' >> ~/.zprofilesource ~/.zshrc
Rust
brew install rustupecho 'export PATH="/opt/homebrew/opt/rustup/bin:$PATH"' >> ~/.zprofilerustup-initecho '. "$HOME/.cargo/env"' >> ~/.zprofile
ngrok
brew install ngrok/ngrok/ngrokngrok config add-authtoken <authtoken>
ブラウザでインストールしちゃった
brew install figmabrew install slackbrew install google-chrome
SSH の設定
mkdir -m 700 ~/.sshmkdir -m 755 ~/.ssh/conf.dtouch ~/.ssh/configecho 'Include ~/.ssh/conf.d/*.conf' >> ~/.ssh/config
github の設定
ssh-keygen -t ed25519 -f ~/.ssh/githubpbcopy < ~/.ssh/github.pub- Add new SSH Key
ssh -T git@github.comvim ~/.ssh/conf.d/github.conf
Host github.com
HostName github.com
User git
Port 22
IdentityFile ~/.ssh/github
TCPKeepAlive yes
IdentitiesOnly yes
フォルダ
mkdir ~/Projects
その他 GUI での設定
そのうち書く
Discussion