nvim installer script 0.12+
This commit is contained in:
21
install-nvim-latest.sh
Executable file
21
install-nvim-latest.sh
Executable 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
|
||||
Reference in New Issue
Block a user