Skip to content

Instantly share code, notes, and snippets.

@27Cobalter
Last active December 14, 2017 17:24
Show Gist options
  • Save 27Cobalter/95a0bf48a8371f06c588f14872849884 to your computer and use it in GitHub Desktop.
Save 27Cobalter/95a0bf48a8371f06c588f14872849884 to your computer and use it in GitHub Desktop.
#!/bin/zsh
cd ~/.nyan/vim
git=`git pull`
echo $git
if [[ "Already up to date." != $git ]]; then
old_vim=`vim --version | head -n 2`
make clean
./configure --prefix=/usr/local --with-luajit --enable-channel --enable-cscope --enable-fontset --enable-gpm --enable-icon-cache-update --enable-largefile --enable-multibyte --enable-netbeans --enable-nls --enable-option-checking --enable-terminal --enable-xim --enable-python3interp=yes --enable-pythoninterp=yes --enable-rubyinterp=yes --enable-luainterp=yes && make -j8 && sudo make install
new_vim=`vim --version | head -n 2`
else
old_vim="vim is latest version"
fi
cd ~/.nyan/neovim
git=`git pull`
echo $git
if [[ "Already up to date." != $git ]]; then
old_nvim=`nvim --version | head -n 2`
make clean && sudo rm -rf build
make -j8 && sudo make install
new_nvim=`nvim --version | head -n 2`
else
old_nvim="neovim is latest version."
fi
echo $old_vim
echo $new_vim
echo $old_nvim
echo $new_nvim
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment