LoginSignup
1
1

おニューのmacでターミナルを整える【iTerm2】

Posted at

やりたいこと

まっさらなmacで、ターミナルを使いやすくする

iTerm2の導入

iTerm2とは、デフォルトでmacに入っているターミナルよりもいい感じのターミナルである(雑)

こちらからiTerm2をダウンロードする
ダウンロードしたらアプリケーションフォルダに移動させましょう

iTerm2の色変更

デフォルトでは文字が全部白で大変読みづらいため、いいかんじのカラーテーマに変更する

こちらからテーマ「iceberg」をダウンロードする
iTerm2の preferences > Profiles > Colors を開く。
Profileを追加してicebergとか名前をつける。
右下のColor presetsタブから、ダウンロードしたテーマのファイル(iceberg.itermcolors)をimportする
image.png

.zshrcに以下を書き込む

export CLICOLOR=1

source ~/.zshrcしてターミナルを再起動する

表示されるものの変更(pure)

今いるディレクトリや、gitブランチ名もいい感じに表示してくれるライブラリ「pure」を導入します
ソースはこちらです。
brewでインストールする

brew install pure

.zshrcに以下を書き込む

autoload -U promptinit; promptinit
prompt pure

source ~/.zshrcしてターミナルを再起動する

結果

いいかんじ

image.png

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