mirror of
https://github.com/ItsDrike/dotfiles.git
synced 2024-12-25 12:44:35 +00:00
Update install_user script
This commit is contained in:
parent
1cb455fba7
commit
2fec62fdd3
|
@ -50,22 +50,13 @@ yay -Y --devel --save
|
|||
# ~/.config/zsh/.zshenv to your home directory.
|
||||
mkdir -p ~/.config
|
||||
cp -ra home/.config/shell ~/.config
|
||||
rm -rf ~/.config/zsh/ || true # in case there is already some zsh config
|
||||
rm -rf ~/.config/zsh/ || true # in case there is already some zsh config
|
||||
cp -ra home/.config/zsh ~/.config
|
||||
rm -rf ~/.config/zsh/.zgenom
|
||||
git clone https://github.com/jandamm/zgenom ~/.config/zsh/.zgenom
|
||||
mkdir -p ~/.cache/zsh
|
||||
touch ~/.cache/zsh/history
|
||||
|
||||
# Install various python versions with pyenv
|
||||
# (note: if you don't need pyenv, remove ~/.config/shell/py-alias)
|
||||
pyenv install -l | cut -d' ' -f3 | grep -E '^3\.11\.[0-9]+$' | tail -n 1 | xargs -I {} pyenv install {}
|
||||
pyenv install -l | cut -d' ' -f3 | grep -E '^3\.10\.[0-9]+$' | tail -n 1 | xargs -I {} pyenv install {}
|
||||
pyenv install -l | cut -d' ' -f3 | grep -E '^3\.9\.[0-9]+$' | tail -n 1 | xargs -I {} pyenv install {}
|
||||
pyenv install -l | cut -d' ' -f3 | grep -E '^3\.8\.[0-9]+$' | tail -n 1 | xargs -I {} pyenv install {}
|
||||
pyenv install -l | cut -d' ' -f3 | grep -E '^3\.7\.[0-9]+$' | tail -n 1 | xargs -I {} pyenv install {}
|
||||
pyenv install -l | cut -d' ' -f3 | grep -E '^3\.6\.[0-9]+$' | tail -n 1 | xargs -I {} pyenv install {}
|
||||
|
||||
# Copy other user configurations
|
||||
mkdir -p ~/.local
|
||||
cp -ra home/.local/bin ~/.local
|
||||
|
@ -87,6 +78,16 @@ cp -ra home/.config/lf ~/.config
|
|||
cp -ra home/.local/share/gnupg/gpg.conf ~/.local/share/gnupg
|
||||
chmod 600 ~/.local/share/gnupg/gpg.conf
|
||||
|
||||
# Install various python versions with pyenv
|
||||
# This might take a while
|
||||
# (note: if you don't need pyenv, remove ~/.config/shell/py-alias, and commment these lines)
|
||||
pyenv install -l | cut -d' ' -f3 | grep -E '^3\.11\.[0-9]+$' | tail -n 1 | xargs -I {} pyenv install {}
|
||||
pyenv install -l | cut -d' ' -f3 | grep -E '^3\.10\.[0-9]+$' | tail -n 1 | xargs -I {} pyenv install {}
|
||||
pyenv install -l | cut -d' ' -f3 | grep -E '^3\.9\.[0-9]+$' | tail -n 1 | xargs -I {} pyenv install {}
|
||||
pyenv install -l | cut -d' ' -f3 | grep -E '^3\.8\.[0-9]+$' | tail -n 1 | xargs -I {} pyenv install {}
|
||||
pyenv install -l | cut -d' ' -f3 | grep -E '^3\.7\.[0-9]+$' | tail -n 1 | xargs -I {} pyenv install {}
|
||||
pyenv install -l | cut -d' ' -f3 | grep -E '^3\.6\.[0-9]+$' | tail -n 1 | xargs -I {} pyenv install {}
|
||||
|
||||
echo "You should now exit (logout) the user and relogin with: su -l itsdrike"
|
||||
echo "This will put you into a configured ZSH shell, you can continue" \
|
||||
"configuring the rest of of the system manually from there"
|
||||
|
|
Loading…
Reference in a new issue