From f06e041dd04fbaaaa6fb52f10e3f7b051b342109 Mon Sep 17 00:00:00 2001 From: Veit Heller Date: Tue, 24 Jun 2014 18:29:17 +0200 Subject: [PATCH] Added Makefile and pythonrc --- Makefile | 17 +++++++++++++++++ pythonrc | 17 +++++++++++++++++ 2 files changed, 34 insertions(+) create mode 100644 Makefile create mode 100644 pythonrc 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