config/bootstrap.sh

38 lines
944 B
Bash
Raw Normal View History

2021-09-11 13:36:34 +00:00
#!/bin/bash
if ! [ -a /usr/bin/nvim ]; then
2021-09-11 22:32:08 +00:00
echo "Installing nvim..."
curl -LO https://github.com/neovim/neovim/releases/latest/download/nvim.appimage
chmod au+x nvim.appimage
cp nvim.appimage /usr/bin/nvim
sudo update-alternatives --install /usr/bin/vi vi /usr/bin/nvim 60
sudo update-alternatives --config vi
sudo update-alternatives --install /usr/bin/vim vim /usr/bin/nvim 60
sudo update-alternatives --config vim
sudo update-alternatives --install /usr/bin/editor editor /usr/bin/nvim 60
sudo update-alternatives --config editor
2021-09-11 13:36:34 +00:00
fi
sudo apt update
sudo apt install -y tmux stow podman
mkdir -p ~/Code
cd ~/Code
if ! [ -a config ]; then
2021-09-11 22:32:08 +00:00
git clone https://github.com/ntietz/config.git
cd config
2021-09-11 13:36:34 +00:00
fi
2021-09-12 01:27:50 +00:00
mkdir -p ~/Code/vendor
cd ~/Code/vendor
2021-09-11 13:36:34 +00:00
2021-09-12 01:27:50 +00:00
if ! [ -a tla-bin ]; then
git clone https://github.com/pmer/tla-bin.git
fi
cd tla-bin
./download_or_update_tla.sh
sudo ./install.sh /usr/local
2021-09-11 13:36:34 +00:00