bind -x '"\C-j": backward-kill-word'


backward-kill-word: command not found

As mikeserv quoted here, i am able to do backward-kill-word using Ctrl-w. However this is the same key i use in emacs for select/cut text, causing confusion.

I am trying to bind backward-kill-word to a different key sequence, C-j and got this error command not found.

1 Answer 1

bind -x

expects a shell command. Just do

bind '"\C-j": backward-kill-word'

You must log in to answer this question.