top | item 5658416 (no title) niggler | 13 years ago on OSX you need readline.parse_and_bind('bind ^I rl_complete') discuss order hn newest alexpopescu|13 years ago I use a combination of all these 3 tricks as I have my dotfiles shared between Mac and Linux.Basically my pythonstartup.py contains the extra check for os: AP_AUTOCOMPLETE=False import sys try: import readline except ImportError: print "Module readline unavailable" else: import rlcompleter readline.parse_and_bind("tab: complete") if sys.platform == 'darwin': readline.parse_and_bind("bind ^I rl_complete") AP_AUTOCOMPLETE=True
alexpopescu|13 years ago I use a combination of all these 3 tricks as I have my dotfiles shared between Mac and Linux.Basically my pythonstartup.py contains the extra check for os: AP_AUTOCOMPLETE=False import sys try: import readline except ImportError: print "Module readline unavailable" else: import rlcompleter readline.parse_and_bind("tab: complete") if sys.platform == 'darwin': readline.parse_and_bind("bind ^I rl_complete") AP_AUTOCOMPLETE=True
alexpopescu|13 years ago
Basically my pythonstartup.py contains the extra check for os: