Mercurial > public > dotfiles
view python/.pythonstartup @ 13:0c225d280b06
Merge.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Tue, 04 Jun 2013 19:25:17 -0500 |
parents | 71f65ccb96f0 |
children | 357906c82c1f |
line wrap: on
line source
# python startup file import readline import rlcompleter import atexit import os # tab completion readline.parse_and_bind('tab: complete') # history file histfile = os.path.join(os.environ['HOME'], '.pythonhistory') try: readline.read_history_file(histfile) except IOError: pass atexit.register(readline.write_history_file, histfile) del os, histfile, readline, rlcompleter