Jan 27, 2010
Make the zsh zle handle “words” correctly
Snippet from my .zshrc:
# This controls what the line editor considers a word. By default it
# includes '/', which makes it so that when I M-del (attempting to erase
# a directory in a path), I erase the whole path. Annoying.
# WORDCHARS='*?_-.[]~=/&;!#$%^(){}<>' # (default)
WORDCHARS='*?_-.[]~=&;!#$%^(){}<>'
After living with this for a while, I realize that I should probably remove the underscore too, since that’s what I was used to in bash.
Like this post? Get updates from my feed.