Last active
August 29, 2015 14:01
-
-
Save hyang0/a59175560823bd3cf383 to your computer and use it in GitHub Desktop.
pythonrc
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ~/.pythonrc.py | |
# enable syntax completion | |
# add the next line to your .bashrc | |
# export PYTHONSTARTUP=~/.pythonrc.py | |
try: | |
import readline | |
except ImportError: | |
print("Module readline not available.") | |
else: | |
import rlcompleter | |
readline.parse_and_bind("tab: complete") | |
readline.parse_and_bind('''control-o:" "''') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment