In zsh, how can I set up the line editor such that backward-kill-word stops on a directory separator? Currently in my bash setup, if I type
cd ~/devel/sandbox <
For recent versions of zsh, you can simply add:
autoload -U select-word-style select-word-style bash
to your zshrc as described in zshcontrib(1).