Refactor directory structure

This commit is contained in:
Manuel Thalmann 2023-01-23 14:19:26 +01:00
parent 7cc0136bec
commit 0d88f63cfa
39 changed files with 98 additions and 95 deletions
scripts/Software/Python

View file

@ -0,0 +1,10 @@
#!/bin/bash
curl https://pyenv.run | bash
{
echo ""
echo "# pyenv"
echo 'export PYENV_ROOT="$HOME/.pyenv"'
echo 'command -v pyenv >/dev/null || export PATH="$PYENV_ROOT/bin:$PATH"'
echo 'eval "$(pyenv init -)"'
echo 'eval "$(pyenv virtualenv-init -)"'
} >> ~/.bashrc

View file

@ -0,0 +1,9 @@
#!/bin/bash
# Elevate script
if [ ! "$UID" -eq 0 ]
then
sudo bash "$BASH_SOURCE"
else
apt install -y python3 python-is-python3 python3-pip
pip install pipenv
fi