Making iTerm to translate 'meta-key' in the same way as in other OSes

后端 未结 13 1637
轮回少年
轮回少年 2020-12-12 08:42

In bash shell with emacs key-binding, you can use key combination like M-f, M-b to move one word forward or backward on the shell prompt respectively. Usually, the meta key

13条回答
  •  死守一世寂寞
    2020-12-12 09:35

    I use iTerm2, and for me, this answer just partially solved my problem:

    Cmd+, => Profiles => Keys and choose Left option Key acts as: +Esc.

    In addition to that, I had to go to Cmd+, => Profiles => Keys and in the Key Mappings list find both Key Combinations: and , double click them and change their shortcuts to the following:

    *Make sure to select Send Escape Sequence action.

提交回复
热议问题