Conculusion:
- No
WORDCHARS
alternative in Bash, where C-w ends can't be configured. mysql
depends oneditline
, which is customizable with~/.editrc
.redis-cli
depends onlinenoise
, it deletes the whole word without considering:
,-
In zsh, WORDCHARS
controls the behavior of C-w when deleting a word. Is there any alternative in readline?
I've noticed recently the behavior of C-w in mysql
/redis-cli
differs that in Bash, although both of which depends on readline
?
Take string foo:bar
as an example, only bar
is deleted by C-w in Bash. While in mysql
/redis-cli
, the whole word foo:bar
is deleted.
How do I control this behavior?
There are two commands to do backward kill word :
backward-kill-word
deletesbar
,unix-word-rubout
deletesfoo:bar
Run following command to find out what
C-w
is bound toSeems bash doesn't have WORDCHARS as in zsh