Last active
August 19, 2019 19:17
-
-
Save italovieira/4bc0bccdcfd8802dae40064732315f93 to your computer and use it in GitHub Desktop.
Script for download and setup Neovim
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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