dotfiles/setup.sh
2023-11-16 16:37:58 -05:00

28 lines
880 B
Bash
Executable File

#!/bin/bash
HOME=/home/coder
sudo add-apt-repository -y ppa:neovim-ppa/unstable
sudo apt update
sudo apt-get install -y libncurses5-dev neovim
sudo apt-get install -y build-essential zlib1g-dev libffi-dev libssl-dev libbz2-dev libreadline-dev libsqlite3-dev liblzma-dev
curl https://sh.rustup.rs -sSf | sh
sudo curl https://pyenv.run | bash
mv ./home/config/nvim /home/coder/.config/nvim
mv ./home/bin /home/coder/bin
mv ./home/gitconfig /home/coder/.gitconfig
mv ./home/shell_aliases /home/coder/.shell_aliases
mv ./home/shell_funcs /home/coder/.shell_funcs
#ln -s home/zshrc /home/coder/.zshrc
#
echo 'export PYENV_ROOT="/home/coder/.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
source ~/.bashrc
pyenv install 3.10.13
pyenv global 3.10.13