Skip to content

Instantly share code, notes, and snippets.

@italovieira
Last active August 19, 2019 19:17
Show Gist options
  • Save italovieira/4bc0bccdcfd8802dae40064732315f93 to your computer and use it in GitHub Desktop.
Save italovieira/4bc0bccdcfd8802dae40064732315f93 to your computer and use it in GitHub Desktop.
Script for download and setup Neovim
#!/bin/sh
BIN=$HOME/.local/bin/nvim
CONFIG=$HOME/.config/nvim/init.vim
if [ ! -f $BIN ]; then
curl -fLo $BIN --create-dirs \
https://github.com/neovim/neovim/releases/download/stable/nvim.appimage
fi
if [ ! -f $CONFIG ]; then
curl -fLo $CONFIG --create-dirs \
https://raw.githubusercontent.com/italovieira/dotfiles/master/nvim/.config/nvim/init.vim
fi
chmod +x $BIN
$BIN --headless +q
$BIN --headless +PlugInstall +qall
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment