diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2020-11-28 16:03:54 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2020-11-28 16:03:54 -0300 |
commit | bea8b1ca5aba62b81dc3e0a973b477d09d2604ee (patch) | |
tree | c8166e08705f780671407d6f344b1041d421d1f0 /share/hoarder/pyenv | |
parent | d8f55c1d72e0f51f2aaa2b619e8fce879b54f9f6 (diff) | |
download | trashman-bea8b1ca5aba62b81dc3e0a973b477d09d2604ee.tar.gz trashman-bea8b1ca5aba62b81dc3e0a973b477d09d2604ee.tar.bz2 |
Feat: adds hoarder/pyenv
Diffstat (limited to 'share/hoarder/pyenv')
-rw-r--r-- | share/hoarder/pyenv/info | 0 | ||||
-rwxr-xr-x | share/hoarder/pyenv/unix/install | 29 |
2 files changed, 29 insertions, 0 deletions
diff --git a/share/hoarder/pyenv/info b/share/hoarder/pyenv/info new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/share/hoarder/pyenv/info diff --git a/share/hoarder/pyenv/unix/install b/share/hoarder/pyenv/unix/install new file mode 100755 index 0000000..b1b0579 --- /dev/null +++ b/share/hoarder/pyenv/unix/install @@ -0,0 +1,29 @@ +#!/usr/bin/env sh +# +# Install grab-site +# + +# Parameters +SHARE="$1" +LIB="$2" + +# Include basic functions +. $LIB/trashman/functions || exit 1 +. $LIB/trashman/debian || exit 1 + +# Requirements +trashman_apt_install_packages git + +# Setup pyenv from installer script +#mkdir -p $HOME/.local/bin $HOME/.local/share +#cd $HOME/.local/bin +#wget https://raw.githubusercontent.com/pyenv/pyenv-installer/master/bin/pyenv-installer +#chmod +x pyenv-installer +#./pyenv-installer + +# Setup pyenv by cloning it's repository +if [ ! -d "$HOME/.pyenv" ]; then + git clone https://github.com/pyenv/pyenv.git $HOME/.pyenv +else + ( cd $HOME/.pyenv && git pull ) +fi |