From ae717bdfc3809e6079d312061a0cc447438a0901 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Sun, 1 Oct 2017 19:20:06 +0300 Subject: move PYTHONSTARTUP to python.sh --- %HOME%/.bash_utils/python.sh | 4 +++- %HOME%/.bashrc | 2 -- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/%HOME%/.bash_utils/python.sh b/%HOME%/.bash_utils/python.sh index 6f74f8b..9193535 100644 --- a/%HOME%/.bash_utils/python.sh +++ b/%HOME%/.bash_utils/python.sh @@ -8,7 +8,7 @@ # This is a half-assed way to automatically add your user's pip binary # directory to $PATH. -source "$HOME/.bash_utils/path.sh" +source "$HOME/.bash_utils/path.sh" python_setup_() ( set -o errexit -o nounset -o pipefail @@ -41,3 +41,5 @@ python_setup() { } python_setup + +[ -r "$HOME/.pythonrc" ] && export PYTHONSTARTUP="$HOME/.pythonrc" diff --git a/%HOME%/.bashrc b/%HOME%/.bashrc index e153a13..a8f05f6 100644 --- a/%HOME%/.bashrc +++ b/%HOME%/.bashrc @@ -53,8 +53,6 @@ alias copy='xclip -sel clip' [ -r "$HOME/.bash_utils/ruby.sh" ] && source "$HOME/.bash_utils/ruby.sh" [ -r "$HOME/.bash_utils/text.sh" ] && source "$HOME/.bash_utils/text.sh" -export PYTHONSTARTUP="$HOME/.pythonrc" - os_is_cygwin && set -o igncr os_is_cygwin || complete -r -- cgit v1.2.3