I am learning some bash …

I am learning some bash shortcut keys in emacs mode in order to become a better sysytem administrator and just found that Alt+* shortcut keys can't be used in my MacBook Air within iTerm2 and default Terminal.

Here are solutions below.


iTerm2

According to this post Bash keyboard shortcuts in iTerm like Alt+d and Alt+f .

  1. Command + O to open the iTerm2 profiles
  2. Click Edit Profiles
  3. Choose left option key as +Esc or both left and right option key on the bottom right corner
  4. Close the iTerm2 Profiles

It should works.


Terminal

  1. Command + , to open the Settings of Terminal
  2. Check Use option as meta key on the bottom
  3. Close Terminal Settings

It should works.


Share


Donation

如果覺得這篇文章對你有幫助, 除了留言讓我知道外, 或許也可以考慮請我喝杯咖啡, 不論金額多寡我都會非常感激且能鼓勵我繼續寫出對你有幫助的文章。

If this blog post happens to be helpful to you, besides of leaving a reply, you may consider buy me a cup of coffee to support me. It would help me write more articles helpful to you in the future and I would really appreciate it.


Related Posts