Tried to assign control n to bind any readline function in bash but can't, e.g:
bind '"\C-n" : previous-history'
but still work as bind -x '"\C-n" : "echo foo"'
Why and how to solve it?
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It only takes a minute to sign up.
Sign up to join this communityAs Kamil Maciorowski said
Try bind '"\C-n": previous-history'
without any space before :
While it's fine to have space after :
bind '"\C-n": previous-history'
, without no space before:
. This is not an answer because I cannot answer "why?".next-history
?