LoginSignup
1
1

More than 1 year has passed since last update.

M1 MacBookPro 買ったらすぐやる 環境構築 web開発 iOS開発 Scala3対応 [2021]

Last updated at Posted at 2021-11-22

キーボード設定

システム環境設定から

  • ライブ変換オフ
  • キー速度最速
  • CapsLocksキーでABCと切り替える

zshを便利にする

以下をまとめてコンソールに貼って実行

git clone --recursive https://github.com/sorin-ionescu/prezto.git "${ZDOTDIR:-$HOME}/.zprezto"
setopt EXTENDED_GLOB
for rcfile in "${ZDOTDIR:-$HOME}"/.zprezto/runcoms/^README.md(.N); do
  ln -s "$rcfile" "${ZDOTDIR:-$HOME}/.${rcfile:t}"
done

refs. https://github.com/sorin-ionescu/prezto

homebrew

softwareupdate --install-rosetta && xcode-select --install && /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" 

コンソールに下のようなコマンドを実行しろと出るのでコンソールからコピペして実行

    echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> /Users/ishibashi/.zprofile
    eval "$(/opt/homebrew/bin/brew shellenv)"

iterm2を見やすくする

icebergをダウンロード

curl -O https://raw.githubusercontent.com/Arc0re/Iceberg-iTerm2/master/iceberg.itermcolors

インポートしてからicebergを選択

iTerm >> Preferences >> Profiles >> Colors tab >> Color Presets.. 

iterm2 で新しいタブを開いた時にworking directoryを保存

iTerm > Preferences > Advanced Configuration > Reuse previous session's directory

よく使うツールをまとめてbrewでインストール

まとめてコンソールに貼る

brew install yarn asdf ag docker xcodegen cocoapods
 coursier/formulas/coursier vips iTerm2 mysql karabiner-elements && brew install --cask sourcetree intellij-idea webstorm google-chrome docker 1password deepl sublime-text 

brewでインストールしておくとbrew upgradeでまとめてアップデートできて便利
グローバルのJDKはbrewで入れて、プロジェクト毎のjdkはasdfで管理

Scalaのインストール

cs setup && cs install scala3-compiler && cs install scala3-repl

途中でbad CPUというエラーが出たら

softwareupdate --install-rosetta

Dockerのインストールで失敗したら

Error: It seems there is already a Binary at '/opt/homebrew/share/zsh/site-functions/_docker'.

一度アンインストールしてから再度インストール

brew uninstall docker
brew install --cask docker
1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1