fix pyenv script
This commit is contained in:
@@ -17,13 +17,12 @@ if not_installed "pyenv"; then
|
|||||||
|
|
||||||
# Install pyenv
|
# Install pyenv
|
||||||
# see https://github.com/pyenv/pyenv-installer
|
# see https://github.com/pyenv/pyenv-installer
|
||||||
run "https://github.com/pyenv/pyenv-installer/raw/master/bin/pyenv-installer" "bash"
|
run "https://github.com/pyenv/pyenv-installer/raw/master/bin/pyenv-installer" bash
|
||||||
|
|
||||||
# Add to install path
|
# Add to install path and refresh
|
||||||
readonly pyenv_path="$HOME/.pyenv/bin"
|
export PATH="$HOME/.pyenv/bin:$PATH"
|
||||||
export PATH="$pyenv_path:$PATH"
|
hash -r
|
||||||
eval "$(pyenv init -)"
|
|
||||||
eval "$(pyenv virtualenv-init -)"
|
|
||||||
|
|
||||||
fi
|
fi
|
||||||
printf "pyenv is installed\n"
|
printf "pyenv is installed\n"
|
||||||
|
pyenv --version
|
||||||
|
|||||||
4
utils.sh
4
utils.sh
@@ -22,7 +22,7 @@ install() {
|
|||||||
|
|
||||||
# @arg $1 repository to add
|
# @arg $1 repository to add
|
||||||
app_ppa() {
|
app_ppa() {
|
||||||
sudo add-apt-repository -y ppa:$1 &>/dev/null
|
sudo add-apt-repository -y ppa:$1
|
||||||
}
|
}
|
||||||
|
|
||||||
# @arg $1 url to add
|
# @arg $1 url to add
|
||||||
@@ -33,7 +33,7 @@ add_key() {
|
|||||||
# @arg $1 URL to run
|
# @arg $1 URL to run
|
||||||
# @arg $2 binary to use
|
# @arg $2 binary to use
|
||||||
run() {
|
run() {
|
||||||
curl -fsSL $1 | $2
|
curl -fsSL $1 | $2 | indent
|
||||||
}
|
}
|
||||||
|
|
||||||
# Symlink contents of source folder to target
|
# Symlink contents of source folder to target
|
||||||
|
|||||||
Reference in New Issue
Block a user