Created
February 27, 2024 22:28
-
-
Save chrisdd2/04518ebd2a1bd6ad3e43a2657a064b78 to your computer and use it in GitHub Desktop.
install nvim on linux
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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