56 lines
1.4 KiB
Bash
Executable file
56 lines
1.4 KiB
Bash
Executable file
#!/bin/bash
|
|
GO_VERSION=1.23
|
|
NVIM_VERSION=0.10.2
|
|
NERDFONTS_VERSION=3.3.0
|
|
SOPS_VERSION=3.9.2
|
|
|
|
# install packages
|
|
sudo apt install \
|
|
age \
|
|
apt-transport-https \
|
|
curl \
|
|
fd-find \
|
|
fontconfig \
|
|
golang-${GO_VERSION} \
|
|
gpg \
|
|
htop \
|
|
inxi \
|
|
jq \
|
|
kitty \
|
|
luarocks \
|
|
ncdu \
|
|
python3-neovim \
|
|
python3-pynvim \
|
|
ripgrep \
|
|
tmux \
|
|
unzip \
|
|
wget \
|
|
yq
|
|
|
|
# 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 100
|
|
|
|
# set up nerd fonts
|
|
FONT_DIR=${HOME}/.local/share/fonts/
|
|
mkdir -p ${FONT_DIR}
|
|
wget -qO- https://github.com/ryanoasis/nerd-fonts/releases/download/v${NERDFONTS_VERSION}/DejaVuSansMono.tar.xz | tar -Jxv -C ${FONT_DIR}
|
|
fc-cache -fv
|
|
|
|
# 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
|
|
|
|
# install lazygit
|
|
go install github.com/jesseduffield/lazygit@latest
|
|
|
|
# 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
|