From 56620048e94a0a68f0672b30b6fb55ba7ca6b057 Mon Sep 17 00:00:00 2001 From: Tyrel Souza Date: Tue, 10 Jan 2017 10:40:39 -0500 Subject: [PATCH] Add PythonStartup file --- INSTALL.sh | 1 + pythonstartup.py | 3 +++ vimrc | 2 ++ zshrc | 1 + 4 files changed, 7 insertions(+) create mode 100644 pythonstartup.py diff --git a/INSTALL.sh b/INSTALL.sh index 928c288..cc9dd82 100755 --- a/INSTALL.sh +++ b/INSTALL.sh @@ -10,6 +10,7 @@ ln -s ~/.config/nvim ~/.vim ln -s ~/.config/nvim/init.vim ~/.vimrc ln -s $(pwd)/zshrc ~/.zshrc ln -s $(pwd)/tyrel.zsh-theme ~/.oh-my-zsh/themes/tyrel.zsh-theme +ln -s $(pwd)/pythonstartup.py ~/.pythonstartup.py # Setup vim mkdir -p ~/.vim/bundle diff --git a/pythonstartup.py b/pythonstartup.py new file mode 100644 index 0000000..ed6f9f8 --- /dev/null +++ b/pythonstartup.py @@ -0,0 +1,3 @@ +import sys +import pprint +sys.displayhook = pprint.pprint diff --git a/vimrc b/vimrc index 5d4bf4f..e06f4f3 100644 --- a/vimrc +++ b/vimrc @@ -114,3 +114,5 @@ if filereadable($HOME . "/.vimrc.local") source ~/.vimrc.local endif set background=dark +let NERDTreeIgnore = ['\.pyc$'] + diff --git a/zshrc b/zshrc index 8a84ec6..78e0749 100644 --- a/zshrc +++ b/zshrc @@ -69,3 +69,4 @@ source $HOME/.profile if [ -e $HOME/.credentials ];then source $HOME/.credentials fi +export PYTHONSTARTUP=$HOME/.pythonstartup.py