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
|
2021-10-04 01:39:40 +00:00
|
|
|
sudo apt install -y tmux stow podman cloc
|
2021-09-11 13:36:34 +00:00
|
|
|
|
|
|
|
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-12 01:29:24 +00:00
|
|
|
sudo apt install -y openjdk-17-jre
|
2021-09-11 13:36:34 +00:00
|
|
|
|
2021-10-03 13:22:01 +00:00
|
|
|
# This is needed for coc.nvim
|
|
|
|
sudo apt install -y nodejs npm
|
|
|
|
|