What I tried:
Nothing works.
In other word, setting WORDCHARS
or using select-word-style bash
in zshrc
has no effect whatsoever.
Is it possible to set the word separators to have the ctrl-w
behavior like in bash
at all?
What I tried:
Nothing works.
In other word, setting WORDCHARS
or using select-word-style bash
in zshrc
has no effect whatsoever.
Is it possible to set the word separators to have the ctrl-w
behavior like in bash
at all?
I have tried this today, setting $WORDCHARS
did work for me.
What I wanted to do was have the /
and _
chars be treated as word separators. To do that, I had to remove those from $WORDCHARS
.
WORDCHARS=${WORDCHARS/\/}
WORDCHARS=${WORDCHARS/_}
$WORDCHARS
set to? – Panki Nov 24 '22 at 13:10*?_-.[]~=/&;!#$%^(){}<>
by default. without removing any. Try setting and modifying that in your.zshrc
– Panki Nov 27 '22 at 13:57WORDCHARS
has no effects. Right now I havebackward-kill-dir () { local WORDCHARS=${WORDCHARS/\/} zle backward-kill-word zle -f kill } zle -N backward-kill-dir bindkey '^[^?' backward-kill-dir
– Rubi Shnol Nov 27 '22 at 14:21