1

I am attempting to set revert-all-at-newline on in my bash config file.

bind 'revert-all-at-newline on'

However, this throws the error

readline: revert-all-at-newline: unknown key modifier

bind does not appear to have it

$ bind -l | grep revert-all-at-newline
$

But it is in the man readline documentation locally.

How can I get set the revert-all-at-newline config variable?

  • bash version 4.4.2
  • readline version 7.0
steel
  • 257
  • 2
  • 9
  • bind -V | grep revert-all-at-newline –  Sep 17 '19 at 19:40
  • 1
    bind 'set revert-all-at-newline On' –  Sep 17 '19 at 19:47
  • @bac0n `bind -V | grep revert` tells me it is already "on", but now I wonder why my history is still being rewritten permanently. When I use `bind 'set ...' like you suggested, the error goes away, but that's not the syntax the documentation says to use (no "set"), so I think it might be getting ignored. – steel Sep 18 '19 at 14:16
  • not sure what you are trying to achieve? –  Sep 18 '19 at 14:49
  • shopt -s histappend # append to the history file, don't overwrite it ? –  Sep 18 '19 at 15:27

1 Answers1

1

As @bac0n mentioned, you should use

bind 'set revert-all-at-newline on'

Instead of

bind 'revert-all-at-newline on'

set did the trick!