Fish shell ESC/META 与 os x yosemite 上的 iterm2 键绑定
Fish shell ESC/META keybinding with iterm2 on os x yosemite
如何使用 emacs 风格 forward/back 在 fish using ESC/META 中跳字?在鱼 shell 中,我尝试了以下但没有效果。
bind \eb prevd-or-backward-word
这是正确的键绑定,如果同时按 escape 和 b 的速度足够快,您会发现它有效。
您可能想将选项键用作 Escape。要使其正常工作,请在 iTerm2 配置文件的“键”选项卡中将 Option 键设置为“+Esc”。有关详细说明,请参阅 iTerm2 FAQ 的 "How do I make the option/alt key act like Meta or send escape codes?" 问题。
如何使用 emacs 风格 forward/back 在 fish using ESC/META 中跳字?在鱼 shell 中,我尝试了以下但没有效果。
bind \eb prevd-or-backward-word
这是正确的键绑定,如果同时按 escape 和 b 的速度足够快,您会发现它有效。
您可能想将选项键用作 Escape。要使其正常工作,请在 iTerm2 配置文件的“键”选项卡中将 Option 键设置为“+Esc”。有关详细说明,请参阅 iTerm2 FAQ 的 "How do I make the option/alt key act like Meta or send escape codes?" 问题。