Pipenv bashrc

master
Pietro Brenna 2021-05-31 17:14:46 +02:00
parent ca5ad35a04
commit be7fb600c0
1 changed files with 10 additions and 3 deletions

View File

@ -28,9 +28,16 @@ function feat_addpacks_pip_dev() {
function feat_add_pip() { function feat_add_pip() {
feat_needed curl feat_needed curl
feat_addpacks_pip_dev feat_addpacks_pip_dev
sed -n -e '/# Load pyenv automatically/,$p' \ curl https://pyenv.run | bash 2>&1
<(curl https://pyenv.run | bash 2>&1) \
| cat - "$HOME/.bashrc" > "$HOME/.bashrc.tmp" cat "$HOME/.bashrc" "# Load pyenv automatically by adding
# the following to ~/.bashrc:
export PATH=\"/home/briq/.pyenv/bin:\$PATH\"
eval \"\$(pyenv init -)\"
eval \"\$(pyenv virtualenv-init -)\"
export N_PREFIX=\"\$HOME/.n_prefix\"
export PATH=\"\$N_PREFIX/bin:\$PATH\"" > "$HOME/.bashrc.tmp"
mv "$HOME/.bashrc.tmp" "$HOME/.bashrc" mv "$HOME/.bashrc.tmp" "$HOME/.bashrc"
. "$HOME/.bashrc" . "$HOME/.bashrc"
LATESTPYTHON="$(pyenv install -l | grep '^[0-9\. ]*$' | sed -ne '$s|\s*||gp')" LATESTPYTHON="$(pyenv install -l | grep '^[0-9\. ]*$' | sed -ne '$s|\s*||gp')"