diff --git a/bashrc b/bashrc index 22194b92..c181c03e 100644 --- a/bashrc +++ b/bashrc @@ -545,6 +545,9 @@ alias purgeconfig="apt-get install --reinstall -o DPkg::options::=--force-confas # Send command output to http://sprunge.us `command|sprungeus` alias sprungeus="curl -F 'sprunge=<-' http://sprunge.us" +# Always build pythons with --enable-shared when using pyenv +alias pyenv='CONFIGURE_OPTS="--enable-shared" PYTHON_CONFIGURE_OPTS="--enable-shared" command \pyenv' + # Allow custom aliases to be put in .aliases or .bash_aliases . # .aliases diff --git a/zshrc b/zshrc index 7c0bfd86..63af4027 100644 --- a/zshrc +++ b/zshrc @@ -515,6 +515,9 @@ alias purgeconfig="apt-get install --reinstall -o DPkg::options::=--force-confas # Send command output to http://sprunge.us `command|sprungeus` alias sprungeus="curl -F 'sprunge=<-' http://sprunge.us" +# Always build pythons with --enable-shared when using pyenv +alias pyenv='CONFIGURE_OPTS="--enable-shared" PYTHON_CONFIGURE_OPTS="--enable-shared" command \pyenv' + # .aliases if [ -f ~/.aliases ]; then source ~/.aliases