refactor struct

This commit is contained in:
2026-06-27 20:38:07 +02:00
parent 3731c014f7
commit 88ed0146d2
4 changed files with 13 additions and 2 deletions

21
install-scripts/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