diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..378179f --- /dev/null +++ b/Makefile @@ -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 diff --git a/pythonrc b/pythonrc new file mode 100644 index 0000000..85a3753 --- /dev/null +++ b/pythonrc @@ -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