nvim installer script 0.12+

This commit is contained in:
2026-06-21 22:34:23 +02:00
parent 8c081adf08
commit 9cb62f708a

21
install-nvim-latest.sh Executable file
View File

@@ -0,0 +1,21 @@
#!/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