MacOS doesn't use the "real" readline, and the clone it uses is slightly
incompatible in its bindings. Just bind both and it seems to work on both
MacOS and Linux.
Signed-off-by: Avery Pennarun <apenwarr@gmail.com>
if readline:
readline.set_completer_delims(' \t\n\r/')
readline.set_completer(completer)
- readline.parse_and_bind("tab: complete")
+ readline.parse_and_bind('bind ^I rl_complete')
+ readline.parse_and_bind('tab: complete')
init_readline_vars()
lines = inputiter()