M2チップ搭載MacBook Airのセットアップ

M2チップ搭載MacBook Airのセットアップ プログラミング
記事内に広告が含まれています。

M2チップ搭載MacBook Airのセットアップ

Homebrew

% /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

Appleシリコンの場合は、パスを自分で通す必要があるので、上記コマンドを実行した後に、==> Next steps: に書かれているコマンドを実行。

% echo '# Set PATH, MANPATH, etc., for Homebrew.' >> /Users/{ユーザー名}/.zprofile
% echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> /Users/{ユーザー名}/.zprofile
% eval "$(/opt/homebrew/bin/brew shellenv)"

brew -v でバージョンが表示されればOK

nvm

% brew install nvm
% mkdir ~/.nvm

~/.zshrc に下記を追加し反映

export NVM_DIR="$HOME/.nvm"
  [ -s "/opt/homebrew/opt/nvm/nvm.sh" ] && \. "/opt/homebrew/opt/nvm/nvm.sh"  # This loads nvm
  [ -s "/opt/homebrew/opt/nvm/etc/bash_completion.d/nvm" ] && \. "/opt/homebrew/opt/nvm/etc/bash_completion.d/nvm"  # This loads nvm bash_completion

Node.js

% nvm install --lts

yarn

% npm install -g yarn

iTerm2

Warpも気になっていたが、今まで使い慣れたiTerm2を使う。

% brew install --cask iterm2

iTerm2のカスタマイズ

% brew install zsh-completions
% chmod -R go-w /opt/homebrew/share

~/.zshrc

#=============================
# source zsh-completions
#=============================
if type brew &>/dev/null; then
  FPATH=$(brew --prefix)/share/zsh-completions:$FPATH

  autoload -Uz compinit
  compinit
fi
% source ~/.zshrc
% rm -f ~/.zcompdump; compinit
% brew install zsh-autosuggestions

~/.zshrc

#=============================
# source zsh-autosuggestions
#=============================
source /opt/homebrew/share/zsh-autosuggestions/zsh-autosuggestions.zsh
% source ~/.zshrc

Git

% brew install git

% git config --global user.name "ユーザー名"
% git config --global user.email "メールアドレス"

% git config --global color.ui true
% git config --global color.diff auto
% git config --global color.status auto
% git config --global color.branch auto

% git config --global alias.st status
% git config --global alias.br branch
% git config --global alias.co checkout
% git config --global alias.cm commit

Google Chrome

% brew install --cask google-chrome

Karabiner-Elements

% brew install --cask karabiner-elements

Raycast

ランチャーアプリとしてAlfred、クリップボードのスニペット機能や履歴呼び出しとしてClipyを今まで使っていたが、下記に参考に記載の記事を見て、Raycastを使ってみたくなった。

% brew install --cask raycast

AltTab

% brew install --cask alt-tab

Slack

% brew install --cask slack

VSCode

% brew install --cask visual-studio-code

Docker

% brew install --cask docker

Google Drive

% brew install --cask google-drive

Zoom

% brew install --cask zoom

Discord

% brew install --cask discord

Postman

% brew install --cask postman

参考

コメント

タイトルとURLをコピーしました