]> arthur.barton.de Git - bup.git/commitdiff
cmd/ftp: fix tab completion on MacOS.
authorAvery Pennarun <apenwarr@gmail.com>
Thu, 19 Jan 2012 23:36:13 +0000 (15:36 -0800)
committerAvery Pennarun <apenwarr@gmail.com>
Thu, 19 Jan 2012 23:36:13 +0000 (15:36 -0800)
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>
cmd/ftp-cmd.py

index 62f2cbc89af27d097c804265e9366338f85a5963..097ff2eb9de0a66c32090408a8798dc0d8245331 100755 (executable)
@@ -144,7 +144,8 @@ else:
     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()