Skip to content

Instantly share code, notes, and snippets.

@chrisdd2
Created February 27, 2024 22:28
Show Gist options
  • Save chrisdd2/04518ebd2a1bd6ad3e43a2657a064b78 to your computer and use it in GitHub Desktop.
Save chrisdd2/04518ebd2a1bd6ad3e43a2657a064b78 to your computer and use it in GitHub Desktop.
install nvim on linux
#!/bin/bash
set -e
DEST_DIR='/opt/nvim'
VERSION='v0.9.5'
curl -LO "https://github.com/neovim/neovim/releases/download/$VERSION/nvim-linux64.tar.gz"
tar -xvf nvim-linux64.tar.gz
rm -rf $DEST_DIR
mkdir $DEST_DIR
mv nvim-linux64/* $DEST_DIR
ln -s "$DEST_DIR/bin/nvim" /usr/bin/nvim -f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment