Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [jaye@krs1 ~]$ cat .pythonstartup
- # python startup file
- # echo "export PYTHONSTARTUP=~/.pythonstartup" >> ~/.bashrc
- 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
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement