Merge pull request #101 from Vanderscycle/patch-1

Update install.sh
This commit is contained in:
siduck76 2021-06-28 07:53:28 +05:30 committed by GitHub
commit bd6014d60d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 10 additions and 10 deletions

View File

@ -13,14 +13,15 @@ get_platform() {
echo "installing packer"
if [ ! -d ~/.local/share/nvim/site/pack/packer ]; then
echo "Installing packer"
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
echo "packer installed!"
echo
fi
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