The Daily Build

Icon

Software Development, version 3.0

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.

Share and Enjoy:
  • del.icio.us
  • Digg
  • Sphinn
  • Facebook
  • Mixx
  • Google Bookmarks
  • Twitter
  • FriendFeed
  • Posterous
  • email

Related posts:

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

Category: zsh

Tagged: ,

Leave a Reply

About Me

Related Posts

Related posts:

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