From e7eb3fcba7e7a45f82094763f630717455abc9c9 Mon Sep 17 00:00:00 2001 From: Mikaela Suomalainen Date: Wed, 29 Apr 2015 16:53:29 +0300 Subject: [PATCH] rc: remove pyenv --- rc/bashrc | 16 +--------------- rc/zshrc | 15 +-------------- 2 files changed, 2 insertions(+), 29 deletions(-) diff --git a/rc/bashrc b/rc/bashrc index 34d82aac..1162c70f 100644 --- a/rc/bashrc +++ b/rc/bashrc @@ -186,23 +186,12 @@ fi # Sets your timezone. Set in format , or just timezone like UTC. #export TZ="Europe/Helsinki" # MIKAELA_GREP #MIKAELA_GREP_ENVIRONMENT -# pyenv (Source: their README.md file http://git.io/ReCDSQ ) -export PYENV_ROOT="$HOME/.pyenv" -alias pyenv-install="\wget -O /tmp/pyenv-installer https://raw.github.com/yyuu/pyenv-installer/master/bin/pyenv-installer;chmod +x /tmp/pyenv-installer;/tmp/pyenv-installer;rm /tmp/pyenv-installer" -alias pyenv-install-alt="cd ~;git clone https://github.com/yyuu/pyenv.git $PYENV_ROOT" - # Sets PATH. To add another path, add : to string below. -PATH=$HOME/.local/bin:$HOME/.local/sbin:$HOME/.local/games:$PYENV_ROOT/shims:$PYENV_ROOT/bin:$HOME/bin:$HOME/sbin:$HOME/games:/usr/local/bin:/usr/local/sbin:/usr/local/games:/usr/bin:/usr/sbin:/usr/games:/bin:/sbin:/games:$PATH +PATH=$HOME/.local/bin:$HOME/.local/sbin:$HOME/.local/games:$HOME/bin:$HOME/sbin:$HOME/games:/usr/local/bin:/usr/local/sbin:/usr/local/games:/usr/bin:/usr/sbin:/usr/games:/bin:/sbin:/games:$PATH # Removes duplicates from $PATH. Copied from http://unix.stackexchange.com/a/14896 PATH=$(echo "$PATH" | awk -v RS=':' -v ORS=":" '!a[$1]++{if (NR > 1) printf ORS; printf $a[$1]}') -# Apply pyenv changes. - -if [ -d "$PYENV_ROOT" ]; then - eval "$(pyenv init -)" -fi - # "Changes" home directory without root. Uncomment both lines below this. #export HOME= #cd @@ -529,9 +518,6 @@ alias purgeconfig="apt-get install --reinstall -o DPkg::options::=--force-confas alias sprungeus="curl -F 'sprunge=<-' http://sprunge.us" alias ixio="curl -F 'f:1=<-' ix.io" -# Always build pythons with --enable-shared when using pyenv -alias pyenv='CONFIGURE_OPTS="--enable-shared" PYTHON_CONFIGURE_OPTS="--enable-shared" command \pyenv' - # Copy-paste mtr output more easily alias mtrp="mtr -rwc 10" alias mtrp4="mtr -rw4c 10" diff --git a/rc/zshrc b/rc/zshrc index 1fc99d15..ea33f218 100644 --- a/rc/zshrc +++ b/rc/zshrc @@ -130,22 +130,12 @@ fi # Sets your timezone. Set in format , or just timezone like UTC. # export TZ="Europe/Helsinki" # MIKAELA_GREP # MIKAELA_GREP_ENVIRONMENT -# pyenv (Source: their README.md file http://git.io/ReCDSQ ) -export PYENV_ROOT="$HOME/.pyenv" -alias pyenv-install="\wget -O /tmp/pyenv-installer https://raw.github.com/yyuu/pyenv-installer/master/bin/pyenv-installer;chmod +x /tmp/pyenv-installer;/tmp/pyenv-installer;rm /tmp/pyenv-installer" -alias pyenv-install-alt="cd ~;git clone https://github.com/yyuu/pyenv.git $PYENV_ROOT" - # Sets PATH. To add another path, add : to string below. -PATH=$HOME/.local/bin:$HOME/.local/sbin:$HOME/.local/games:$HOME/bin:$HOME/sbin:$HOME/games:$PYENV_ROOT/shims:$PYENV_ROOT/bin:/usr/local/bin:/usr/local/sbin:/usr/local/games:/usr/bin:/usr/sbin:/usr/games:/bin:/sbin:/games:$PATH +PATH=$HOME/.local/bin:$HOME/.local/sbin:$HOME/.local/games:$HOME/bin:$HOME/sbin:$HOME/games:/usr/local/bin:/usr/local/sbin:/usr/local/games:/usr/bin:/usr/sbin:/usr/games:/bin:/sbin:/games:$PATH # Removes duplicates from $PATH. Copied from http://unix.stackexchange.com/a/14896 PATH=$(echo "$PATH" | awk -v RS=':' -v ORS=":" '!a[$1]++{if (NR > 1) printf ORS; printf $a[$1]}') -# Apply pyenv changes. -if [ -d "$PYENV_ROOT" ]; then - eval "$(pyenv init -)" -fi - # "Changes" home directory without root. Uncomment both lines below this. #export HOME= #cd @@ -514,9 +504,6 @@ alias purgeconfig="apt-get install --reinstall -o DPkg::options::=--force-confas alias sprungeus="curl -F 'sprunge=<-' http://sprunge.us" alias ixio="curl -F 'f:1=<-' ix.io" -# Always build pythons with --enable-shared when using pyenv -alias pyenv='CONFIGURE_OPTS="--enable-shared" PYTHON_CONFIGURE_OPTS="--enable-shared" command \pyenv' - # Copy-paste mtr output more easily alias mtrp="mtr -rwc 10" alias mtrp4="mtr -rw4c 10"