Running readline.parse_and_bind("bind ^I rl_complete") makes the letter "b" stop working on the console. This patch solves the issue and correctly enables tab completition on OSX.
This commit is contained in:
+1
-3
@@ -41,9 +41,7 @@ def enable_autocomplete_and_history(adir, env):
|
|||||||
except ImportError:
|
except ImportError:
|
||||||
pass
|
pass
|
||||||
else:
|
else:
|
||||||
readline.parse_and_bind("bind ^I rl_complete"
|
readline.parse_and_bind("tab: complete")
|
||||||
if sys.platform == 'darwin'
|
|
||||||
else "tab: complete")
|
|
||||||
history_file = os.path.join(adir, '.pythonhistory')
|
history_file = os.path.join(adir, '.pythonhistory')
|
||||||
try:
|
try:
|
||||||
readline.read_history_file(history_file)
|
readline.read_history_file(history_file)
|
||||||
|
|||||||
Reference in New Issue
Block a user