From a5e3d7f440a438a683f627c5ac6f8576d8703560 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Kn=C3=BCttel?= Date: Thu, 25 Feb 2021 20:35:22 +0100 Subject: [PATCH] added a script to install nvim --- install_nvim.sh | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100755 install_nvim.sh diff --git a/install_nvim.sh b/install_nvim.sh new file mode 100755 index 0000000..e035921 --- /dev/null +++ b/install_nvim.sh @@ -0,0 +1,23 @@ +#!/bin/bash + +installdir="$HOME/.local/bin" +echo "install directory is $installdir" + +if [ ! -d $installdir ]; then + echo "install directory does not exist, creating it" + mkdir -p $installdir || (echo "failed to create install directory" ; exit 1) +fi + +cd $installdir + +echo "downloading appimage..." +wget https://github.com/neovim/neovim/releases/download/nightly/nvim.appimage || (echo "failed to download appimage"; exit 1) +echo "done." +chmod +x nvim.appimage + +echo "The neovim appimage has been downloaded into $installdir." +echo "It has been marked as executable, you can now run $installdir/nvim.appimage." +echo "You should add an alias into your shrc:" +echo " alias vim=\"$installdir/nvim.appimage\"" +echo "or" +echo " alias nvim=\"$installdir/nvim.appimage\""