#!/bin/zsh # from primeagen's examples and dev repo # currnetly not used, but keeping for reference in case i need this soon for debian install_neovim_dir=$HOME/.local/build/neovim install_neovim_version="v0.10.3" [ ! -z $NVIM_VERSION ] && install_neovim_version="$NVIM_VERSION" echo "install_neovim_version: \"$install_neovim_version\"" [ ! -d $install_neovim_dir ] && git clone https://github.com/neovim/neovim.git $install_neovim_dir git -C $install_neovim_dir fetch --all git -C $install_neovim_dir checkout $install_neovim_version make -C $install_neovim_dir clean make -C $install_neovim_dir CMAKE_BUILD_TYPE=RelWithDebInfo sudo make -C $install_neovim_dir install