logoalt Hacker News

fainpultoday at 10:01 AM1 replyview on HN

Set $WORDCHARS accordingly. In your case, remove / from $WORDCHARS.

https://unix.stackexchange.com/a/726014


Replies

exceptionetoday at 11:00 AM

For the bash people

  stty werase undef
  bind '"\C-w": backward-kill-word'

source: https://superuser.com/questions/212446/binding-backward-kill...