From 087e4e8acc3057da406ed59209af06056e2e7ba4 Mon Sep 17 00:00:00 2001 From: Henri <52706578+Vanderscycle@users.noreply.github.com> Date: Sun, 27 Jun 2021 12:02:56 -0700 Subject: [PATCH] Update install.sh Gave up and decided to clone the config and reinstall over my previous install to add later. Made the following modifications: 1 - removed the extra echos (use echo -e "\n some line " in the future) 2 - packer doesn't install if there's a previously installed packer folder. So the bash script purges the previous packer folder and starts anew. tested the config correctly --- install.sh | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/install.sh b/install.sh index 3069243..acb692f 100755 --- a/install.sh +++ b/install.sh @@ -13,15 +13,16 @@ get_platform() { echo "installing packer" -if [ ! -d ~/.local/share/nvim/site/pack/packer ]; then - echo "Installing packer" - git clone https://github.com/wbthomason/packer.nvim \ - ~/.local/share/nvim/site/pack/packer/start/packer.nvim - echo - echo "packer installed!" - echo +if [ -d ~/.local/share/nvim/site/pack/packer ]; then + echo "Clearning previous packer installs" + rm -rf ~/.local/share/nvim/site/pack fi +echo -e "\n=> Installing packer" +git clone https://github.com/wbthomason/packer.nvim \ + ~/.local/share/nvim/site/pack/packer/start/packer.nvim +echo -e "=> packer installed!" + echo "Linking config" echo "old nvim config will be changed to nvim.bak if exists! :0" @@ -49,9 +50,8 @@ else sed -i "s/bash/$shellname/g" ~/.config/nvim/lua/mappings.lua fi -echo "shell changed to $shellname on nvim successfully!" -echo -echo "neovim will open with some errors , just press enter" && sleep 1 +echo -e "\n=> shell changed to $shellname on nvim successfully!" +echo -e "\n=> neovim will open with some errors , just press enter" && sleep 1 # install all plugins + compile them nvim +PackerSync