terminal_configuration/install.sh
bumpsoo cec33891b3 fix: install.sh
delete artifacts after install nvim and go
2024-08-15 14:20:15 +09:00

19 lines
539 B
Bash

#!/bin/bash
# nvm
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash
# neovim
curl -LO https://github.com/neovim/neovim/releases/latest/download/nvim-linux64.tar.gz
sudo rm -rf /opt/nvim
sudo tar -C /opt -xzf nvim-linux64.tar.gz
sudo rm nvim-linux64.tar.gz
# go
if [ -z "$GO_VERSION" ]
then
GO_VERSION="1.22.0"
fi
curl -LO https://go.dev/dl/go$GO_VERSION.linux-amd64.tar.gz
sudo rm -rf /usr/local/go && sudo tar -C /usr/local -xzf go$GO_VERSION.linux-amd64.tar.gz
sudo rm go$GO_VERSION.linux-amd64.tar.gz