Add system-type filters, add git-clone handling to main script
This commit is contained in:
@@ -1,17 +1,17 @@
|
||||
#!/bin/zsh
|
||||
|
||||
local neovim_dir=$HOME/.local/build/neovim
|
||||
local neovim_version="v0.10.3"
|
||||
[ ! -z $NVIM_VERSION ] && neovim_version="$NVIM_VERSION"
|
||||
echo "neovim_version: \"$neovim_version\""
|
||||
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 $neovim_dir ] && git clone https://github.com/neovim/neovim.git $neovim_dir
|
||||
git -C $neovim_dir fetch --all
|
||||
git -C $neovim_dir checkout $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 $neovim_dir clean
|
||||
make -C $neovim_dir CMAKE_BUILD_TYPE=RelWithDebInfo
|
||||
sudo make -C $neovim_dir install
|
||||
make -C $install_neovim_dir clean
|
||||
make -C $install_neovim_dir CMAKE_BUILD_TYPE=RelWithDebInfo
|
||||
sudo make -C $install_neovim_dir install
|
||||
|
||||
# from primeagen's dev repo, uncomment/edit as needed
|
||||
# git clone https://github.com/ThePrimeagen/harpoon.git $HOME/personal/harpoon
|
||||
|
Reference in New Issue
Block a user