Added Makefile and pythonrc
This commit is contained in:
17
Makefile
Normal file
17
Makefile
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
all:bash ghc git python vim
|
||||||
|
|
||||||
|
bash:
|
||||||
|
cp bash_profile ~/.bash_profile
|
||||||
|
|
||||||
|
ghc:
|
||||||
|
cp ghci ~/.ghci
|
||||||
|
|
||||||
|
git:
|
||||||
|
cp gitignore ~/.gitignore
|
||||||
|
cp gitconfig ~/.gitconfig
|
||||||
|
|
||||||
|
python:
|
||||||
|
cp pythonrc ~/.pythonrc
|
||||||
|
|
||||||
|
vim:
|
||||||
|
cp vimrc ~/.vimrc
|
17
pythonrc
Normal file
17
pythonrc
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
import sys
|
||||||
|
import os
|
||||||
|
import atexit
|
||||||
|
import readline
|
||||||
|
|
||||||
|
histfile = os.path.expanduser('~/.pythonhistory')
|
||||||
|
try:
|
||||||
|
readline.read_history_file(histfile)
|
||||||
|
except IOError:
|
||||||
|
pass
|
||||||
|
def write_history(readline=readline, histfile=histfile):
|
||||||
|
try:
|
||||||
|
readline.write_history_file(histfile)
|
||||||
|
except IOError:
|
||||||
|
pass
|
||||||
|
atexit.register(write_history)
|
||||||
|
del histfile, atexit, write_history, sys, os
|
Reference in New Issue
Block a user