Skip to content

Instantly share code, notes, and snippets.

@hyang0
Last active August 29, 2015 14:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hyang0/a59175560823bd3cf383 to your computer and use it in GitHub Desktop.
Save hyang0/a59175560823bd3cf383 to your computer and use it in GitHub Desktop.
pythonrc
# ~/.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