代码之家  ›  专栏  ›  技术社区  ›  wilhelmtell

zsh:停止目录分隔符上的向后终止字

zsh
  •  38
  • wilhelmtell  · 技术社区  · 17 年前

    在里面 zsh

    cd ~/devel/sandbox
    

    然后点击C-w点,就在“devel/”后面。在我的zsh设置中,点位于“cd”之后。我想设置zsh,使其行为类似于bash。

    3 回复  |  直到 17 年前
        1
  •  92
  •   huon John U    4 年前

    对于zsh的最新版本,您只需添加:

    autoload -U select-word-style
    select-word-style bash
    

    如中所述,发送至您的zshrc the zsh manual man zshcontrib ).

        2
  •  74
  •   poolie    13 年前

    WORDCHARS (非字母数字字符被视为单词的一部分)指不包括 /

    如果你愿意,你也可以调整它 ^w 在点、下划线等上打断 ~/.zshrc

    WORDCHARS='*?_-.[]~=&;!#$%^(){}<>'
    
        3
  •  -3
  •   James Van Huis    17 年前

    一个快速的谷歌显示:

    Backward Kill

    Bash Style Backward Kill