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 .
Command + O
to open the iTerm2 profiles- Click Edit Profiles
- Choose left option key as
+Esc
or both left and right option key on the bottom right corner - Close the iTerm2 Profiles
It should works.
Terminal
Command + ,
to open the Settings of Terminal- Check
Use option as meta key
on the bottom - 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
- iTerm2 搶走 https 連結預設開啟程式的解法
- Antivirus software for Mac
- Mount Windows NTFS filesystem on Mac OSX
- 修改 Mac 的截圖儲存位置及格式
- Disable Startup Sound of a Mac