dotfiles/bootstrap.sh

58 lines
1.4 KiB
Bash
Raw Normal View History

2024-03-30 16:15:31 +00:00
#!/bin/bash
2024-12-19 01:21:36 +00:00
GO_VERSION=1.23
NVIM_VERSION=0.10.3
2024-12-19 01:21:36 +00:00
NERDFONTS_VERSION=3.3.0
SOPS_VERSION=3.9.2
2024-03-30 16:15:31 +00:00
# install packages
sudo apt install \
2024-12-19 01:21:36 +00:00
age \
2024-11-28 00:57:28 +00:00
apt-transport-https \
curl \
fd-find \
fontconfig \
fzf \
2024-12-19 01:21:36 +00:00
golang-${GO_VERSION} \
2024-11-28 00:57:28 +00:00
gpg \
htop \
inxi \
jq \
kitty \
luarocks \
ncdu \
python3-neovim \
python3-pynvim \
ripgrep \
tmux \
unzip \
wget \
yq
2024-03-30 16:15:31 +00:00
2024-12-19 01:21:36 +00:00
# install golang to path
sudo update-alternatives --install /usr/bin/go go /usr/lib/go-${GO_VERSION}/bin/go 100 \
--slave /usr/bin/gofmt gofmt /usr/lib/go-${GO_VERSION}/bin/gofmt
2024-12-19 01:21:36 +00:00
2024-03-30 16:15:31 +00:00
# set up nerd fonts
FONT_DIR=${HOME}/.local/share/fonts/
mkdir -p ${FONT_DIR}
2024-12-19 01:21:36 +00:00
wget -qO- https://github.com/ryanoasis/nerd-fonts/releases/download/v${NERDFONTS_VERSION}/DejaVuSansMono.tar.xz | tar -Jxv -C ${FONT_DIR}
2024-03-30 16:15:31 +00:00
fc-cache -fv
2024-12-19 01:21:36 +00:00
# install neovim
curl -LO https://github.com/neovim/neovim/releases/download/v${NVIM_VERSION}/nvim-linux64.tar.gz
sudo rm -rf /opt/nvim
sudo tar -C /opt -xzf nvim-linux64.tar.gz
rm nvim-linux64.tar.gz
# install neovim to path
sudo update-alternatives --install /usr/bin/nvim nvim /opt/nvim-linux64/bin/nvim 100
sudo update-alternatives --install /usr/bin/vim vim /opt/nvim-linux64/bin/nvim 100
2024-03-30 16:15:31 +00:00
# install lazygit
2024-12-19 01:21:36 +00:00
go install github.com/jesseduffield/lazygit@latest
2024-03-30 16:15:31 +00:00
2024-12-19 01:21:36 +00:00
# install sops
wget https://github.com/getsops/sops/releases/download/v${SOPS_VERSION}/sops_${SOPS_VERSION}_amd64.deb
sudo apt install ./sops_${SOPS_VERSION}_amd64.deb
rm ./sops_${SOPS_VERSION}_amd64.deb