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.
Related posts:
- Moving to zsh To get started: sudo aptitude install zsh chsh /bin/zsh...
- zsh history expansion Exploring zsh features made me want to figure out...
- Set Your zsh Prompt Since the beginning of time, all the cool kids have...
- Who Else Wants Better Short Term Memory? In “Talent is Overrated”, Geoff Colvin at one point...
- Using Python’s ctypes to Call Into C Libraries The ctypes module makes loading and calling into a dynamic...