LoginSignup
21
28

More than 5 years have passed since last update.

iTerm2の導入・Zshの導入

Last updated at Posted at 2018-12-11

転職したので、良い機会だと思って今回行った環境構築まわりのQiita書きます:blush:

Homebrew-Caskの導入

Homebrew-Caskを使ってiTerm2を入れます。
Homebrew-Caskを使うと、VSCodeなどのツールもインストール可能になります。

Homebrewのインストールがまだな方は上記リンクより導入してください。

$ brew install cask

iTerm2の導入

まずはiterm2がインストール可能かどうか検索します。

$ brew search iterm2

iTerm2が表示されますね!インストールしていきます。

$ brew cask install iterm2

インストール完了!現在のターミナルを閉じてiTerm2を起動しましょう!

Zshの導入

$ brew install zsh
$ sudo vi /etc/shells

末尾に以下を追記

/usr/local/bin/zsh

ログインシェルの変更

$ chsh -s /usr/local/bin/zsh
$ exec $SHELL -l

今までのbashファイルは下記コマンドで移せます。

$ cat .bash_profile >> .zprofile

あとはホームディレクトリに.zshrcファイルを作って設定を書けばOK!
私はまだ設定ファイル作成に詳しくないので、下記を参考にしてみてください。

Web系だけど.zshrc晒す
Homebrewでzsh導入&oh-my-zsh初期設定まとめ

21
28
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
21
28