LoginSignup
11
9

More than 5 years have passed since last update.

【Mac】iTerm2のMetaキー(メタキー)をEscからOption(Alt)に変更する方法

Last updated at Posted at 2018-10-07

ターミナル上でのキーバインドはデフォルトではEmacsライクになっています。

そのため、ターミナル操作でキーバインドを扱う場合、CtrlキーとMetaキーを利用するわけですが、Mac環境ではデフォルトのMetaキーとしてEscキーしか設定されていません。

Macのターミナル、iTerm2においてOptionキーをMetaキーとして扱える方法を記載しておきます。

Preferencesを開き、以下の手順で設定を行います。

  1. Profilesを選択
  2. Keysを選択
  3. Esc+を選択

image.png

なお、ターミナルのキーバインドについては『こちらの記事』にまとめたので興味がある方はご覧になってください。

by @nishina555

11
9
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
11
9