From 01b351b7633981c82f3911498ddba01524e10753 Mon Sep 17 00:00:00 2001 From: Gustaf Rydholm Date: Thu, 2 Jun 2022 18:56:14 +0200 Subject: Rename install to sync --- sync.sh | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100755 sync.sh (limited to 'sync.sh') diff --git a/sync.sh b/sync.sh new file mode 100755 index 0000000..c71f712 --- /dev/null +++ b/sync.sh @@ -0,0 +1,18 @@ +#!/bin/sh + +CONFIG=$HOME/.config/nvim +rm -rf "$CONFIG/lua" + +# Check dependencies +which nvim >/dev/null 2>&1 || + (echo "Neovim not installed!" && exit 1) +which luarocks >/dev/null 2>&1 || + (echo "Luarocks not installed!" && exit 1) +luarocks list | grep "fennel" >/dev/null 2>&1 || + (echo "fennel is not installed" && exit 1) + +# Bootstrap installment +(nvim --headless +qa >/dev/null 2>&1 && + nvim --headless +"au User PackerComplete qa" +PackerSync +TSUpdateSync >/dev/null 2>&1 && + echo "Successfully bootstrapped the config!") || + (echo "Bootstrapping failed..." && exit 1) -- cgit v1.2.3-70-g09d2