dotfiles/setup.sh

44 lines
1.1 KiB
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 16:19:27 +00:00
sudo add-apt-repository -y ppa:neovim-ppa/unstable
2023-11-16 05:07:39 +00:00
sudo apt update
2023-11-16 16:19:27 +00:00
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
2023-11-16 05:25:12 +00:00
2023-11-16 16:19:27 +00:00
export MAKEDEB_RELEASE='makedeb'
bash -c "$(wget -qO - 'https://shlink.makedeb.org/install')"
curl https://sh.rustup.rs -sSf | sh
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 16:19:27 +00:00
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
2023-11-16 05:18:20 +00:00
#
2023-11-16 16:19:27 +00:00
echo 'export PYENV_ROOT="/home/coder/.pyenv"' >> /home/coder/.bashrc
2023-11-16 05:18:20 +00:00
echo '[[ -d $PYENV_ROOT/bin ]] && export PATH="$PYENV_ROOT/bin:$PATH"' >> /home/coder/.bashrc
echo 'eval "$(pyenv init -)"' >> /home/coder/.bashrc
2023-11-16 16:19:27 +00:00
source ~/.bashrc
pyenv install 3.10.13
pyenv global 3.10.13
mkdir ~/.buildsrc
pushd ~/.buildsrc
git clone 'https://mpr.makedeb.org/just'
cd just
makedeb -si
popd
2023-11-16 05:18:20 +00:00
2023-11-16 16:19:27 +00:00
just vimpacker
just pi