如何让btrl-arrow跳过bash中的单词使用特殊字符?

时间:2015-10-23 11:57:56

标签: linux bash shell input zsh

我发现使用ctrl-arrow非常方便地跳过单词的可能性。 但是,由于某种原因,空间之后的特殊字符使得跳跃省略了空间。例如(箭头之间按下ctrl+left|表示光标位置)

command -flag /home/path| -> command -flag /home/|path -> command -flag /|home/path -> command -|flag /home/path -> |command -flag /home/path

这种行为让我很烦恼 - 你知道如何设置它以使光标停在每个单词的开头,包括特殊字符吗?

预期行为示例:

command -flag /home/path| -> command -flag /home|/path -> command -flag |/home/path -> command |-flag /home/path -> |command -flag /home/path

我个人使用zsh + linux,但希望存在独立于OS / shell的解决方案。

0 个答案:

没有答案
相关问题