Files
dotfiles/install-nvim-latest.sh
2026-06-21 22:34:23 +02:00

22 lines
423 B
Bash
Executable File

#!/usr/bin/env bash
set -euo pipefail
archive="nvim-linux-x86_64.tar.gz"
cleanup() {
rm -f "$archive"
}
trap cleanup EXIT
curl -Lo "$archive" https://github.com/neovim/neovim/releases/latest/download/nvim-linux-x86_64.tar.gz
sudo rm -rf /opt/nvim-linux-x86_64
sudo tar -C /opt -xzf "$archive"
cat <<'EOF'
Add this to your shell config (~/.bashrc, ~/.zshrc, ...):
export PATH="$PATH:/opt/nvim-linux-x86_64/bin"
EOF