]> git.phdru.name Git - dotfiles.git/commitdiff
lib/python/init.py: Call parse_and_bind for libedit and readline
authorOleg Broytman <phd@phdru.name>
Thu, 27 Jul 2017 21:56:14 +0000 (00:56 +0300)
committerOleg Broytman <phd@phdru.name>
Thu, 27 Jul 2017 21:56:14 +0000 (00:56 +0300)
Just a reminder for now.

lib/python/init.py

index a38cea39332d3904ffd2313d2abfc4e6607688fb..d8b7c79b89ab8bead28dc330db52457019576765 100644 (file)
@@ -36,6 +36,11 @@ def init():
                 or os.path.expanduser('~/.inputrc')
             readline.read_init_file(initfile)
 
+            #if 'libedit' in readline.__doc__:
+            #    readline.parse_and_bind("bind ^I rl_complete")
+            #else:
+            #    readline.parse_and_bind("tab: complete")
+
             histfile = os.path.expanduser('~/.python_history')
             try:
                 readline.read_history_file(histfile)