dotfiles/setup.sh

26 lines
679 B
Bash
Raw Normal View History

2023-11-16 05:07:39 +00:00
#!/bin/bash
2023-11-16 05:18:20 +00:00
HOME=/home/coder
2023-11-16 05:07:39 +00:00
sudo apt update
2023-11-16 05:10:42 +00:00
sudo curl https://pyenv.run | bash
2023-11-16 05:07:39 +00:00
2023-11-16 05:18:20 +00:00
ln -s ./home/config $HOME/.config
ln -s ./home/bin $HOME/bin
ln -s ./home/gitconfig $HOME/.gitconfig
ln -s ./home/shell_aliases $HOME/.shell_aliases
ln -s ./home/shell_funcs $HOME/.shell_funcs
2023-11-16 05:07:39 +00:00
#ln -s home/zshrc $HOME/.zshrc
2023-11-16 05:18:20 +00:00
#
echo 'export PYENV_ROOT="$HOME/.pyenv"' >> /home/coder/.bashrc
echo '[[ -d $PYENV_ROOT/bin ]] && export PATH="$PYENV_ROOT/bin:$PATH"' >> /home/coder/.bashrc
echo 'eval "$(pyenv init -)"' >> /home/coder/.bashrc
export PYENV_ROOT="$HOME/.pyenv"
[[ -d $PYENV_ROOT/bin ]] && export PATH="$PYENV_ROOT/bin:$PATH"
eval "$(pyenv init -)"
pyenv install 3.10
pyenv global 3.10