0

What I tried:

solution 1

solution 2

solution 3

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?

1 Answers1

0

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/_}
Panki
  • 6,664