dotfiles/arch_setup.sh
2024-05-14 16:44:36 -04:00

28 lines
778 B
Bash
Executable File

#!/bin/bash
USER=tyrel
HOME=/home/tyrel
curl https://sh.rustup.rs -sSf | sh
sudo curl https://pyenv.run | bash
ln -s $(pwd)/home/config/nvim /home/$USER/.config/nvim
ln -s $(pwd)/home/gitconfig /home/$USER/.gitconfig
ln -s $(pwd)/home/shell_aliases /home/$USER/.shell_aliases
ln -s $(pwd)/home/shell_funcs /home/$USER/.shell_funcs
ln -s $(pwd)/home/zshrc /home/$USER/.zshrc
echo 'export PYENV_ROOT="/home/$USER/.pyenv"' >> /home/$USER/.bashrc
echo '[[ -d $PYENV_ROOT/bin ]] && export PATH="$PYENV_ROOT/bin:$PATH"' >> /home/$USER/.bashrc
echo 'eval "$(pyenv init -)"' >> /home/$USER/.bashrc
export PYENV_ROOT="$HOME/.pyenv"
[[ -d $PYENV_ROOT/bin ]] && export PATH="$PYENV_ROOT/bin:$PATH"
eval "$(pyenv init -)"
pyenv install 3.12.3
pyenv global 3.12.3
pip install neovim