Add dot files
This commit is contained in:
parent
4c384b75ea
commit
dc9990db3a
15 changed files with 1294 additions and 0 deletions
15
.pythonstartup
Normal file
15
.pythonstartup
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
# 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue