LoginSignup
7
4

More than 3 years have passed since last update.

ArmのMacでiTerm2の設定

Posted at

環境

  • macOS Big Sur バージョン 11.0.1 MacBook Air (M1, 2020)
  • iTerm2 3.4.3 (しばらくはRosetta2を使用)

iTerm2の設定

Rosettaを使用して開く

Homebrewなど,まだまだApple Siliconのarmアーキテクチャに対応していないので,しばらくの間はターミナルはRosetta2を利用して運用する.

Finderからアプリケーションディレクトリを開き,iTerm.appを右クリックして情報を見るをクリック.Rosettaを使用して開くにチェックを入れる.

以後,起動するとRosetta2が使用されて,今までのintelのx86_64のソフトが利用できる.iTerm2を起動して,次のコマンドを実行して,x86_64と表示されてばRosetta2が使用されている.

$ uname -m
x86_64

Preferences

General

Closing

  • Quit when all windows are closedにチェック.

Appearance

Tabs

  • Show tab bar even when there is only one tabにチェック.

Profiles

Colors

  • 右下のColor Presets...のプルダウンからTango Darkを選択.
  • 背景色が黒すぎるので,Backgroud20% Grayに変更.

Text

あとでプログラミングのフォントとしてよく使われるRictyをインストールして,ここでフォントをRictyに変更する.

Window

  • だいたい画面いっぱいになるようにSetting for New Windowsのところで,Columns: 193Rows: 48に設定.

Terminal

  • Scrollback lines: 10,000に設定.
  • sshの接続先などで勝手にlocaleを変更しないように,Set locale variables automaticallyのチェックを外す.

Keys

ターミナル上でEmacsなどを扱うときにMetaキーが無いと困るので,左右のoptionキーをEsc+として設定する.MetaではなくEsc+にしないだめ.

  • Left Option Key: Esc+
  • Right Option Key: Esc+

Pointer

Bindings

ペーストを2本指クリックでできるように変更.ついでにtabは空白4文字で貼り付けされるように設定する.
Paste from Clipboard:のことろをダブルクリックすると設定画面が出てくる.

  • Button/Gesture: Right Buttonに変更.
  • Convert tabs to spaces: 4にチェック.
7
4
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
7
4