diff options
author | Gustaf Rydholm <gustaf@nexure.io> | 2022-06-02 18:56:14 +0200 |
---|---|---|
committer | Gustaf Rydholm <gustaf@nexure.io> | 2022-06-02 18:56:14 +0200 |
commit | 01b351b7633981c82f3911498ddba01524e10753 (patch) | |
tree | 25dd87140e6247b502a792508c833e9ac5e69bbf | |
parent | 62534c1e62ec403b798c5e8f657169bc6f965449 (diff) |
Rename install to sync
-rwxr-xr-x | install.sh | 15 | ||||
-rwxr-xr-x | sync.sh | 18 |
2 files changed, 18 insertions, 15 deletions
diff --git a/install.sh b/install.sh deleted file mode 100755 index 3773b5a..0000000 --- a/install.sh +++ /dev/null @@ -1,15 +0,0 @@ -#!/bin/sh - -# 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 -c "autocmd User PackerComplete quitall" >/dev/null 2>&1 && -echo "Successfully bootstrapped the config!" || -(echo "Bootstrapping failed..." && exit 1) @@ -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) |