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\""