Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #enable auto tab completion in Python
- Create a file .pythonrc
- # ~/.pythonrc
- # enable syntax completion
- try:
- import readline
- except ImportError:
- print("Module readline not available.")
- else:
- import rlcompleter
- readline.parse_and_bind("tab: complete")
- then in your .bashrc file, add
- export PYTHONSTARTUP=~/.pythonrc
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement