Clark To Do The blog of Clark

iTerm 快捷键绑定 (MacOS)

打开 iTerm, 进入 Preferences > Keys, 点击 + 进行设置.

清空整行

  • Keys: +⟵(Delete)
  • Action: Send Hex Code
    • 0x15

跳至行首

  • Keys: +
  • Action: Send Hex Code
    • 0x01

跳至行尾

  • Keys: +
  • Action: Send Hex Code
    • 0x05

删除整行

  • Keys: +⟵(Delete)
  • Action: Send Hex Code
    • 0x1B 0x08

按单词删除

  • Keys: +fn+⟵(Delete)
  • Action: Send Escape Sequence
    • Esc + d

向左跳过单词

  • Keys: +
  • Action: Send Escape Sequence
    • Esc + b

向右跳过单词

  • Keys: +
  • Action: Send Escape Sequence
    • Esc + f
comments powered by Disqus