I want ctrl-W on Zsh to stop when it encounters the "/" character. I have the following in my .zshrc file, but it doesn't stop on "/". What is going on?
default-backward-delete-word () {
local WORDCHARS="*?_[]~=/&;!#$%^(){}<>"
zle backward-delete-word
}
zle -N default-backward-delete-word
bindkey '^W' default-backward-delete-word