mirror of
https://github.com/macocianradu/setup.git
synced 2026-03-18 21:00:04 +00:00
added progress messages
This commit is contained in:
43
install.sh
43
install.sh
@@ -1,24 +1,47 @@
|
||||
#!/bin/bash
|
||||
|
||||
git clone https://github.com/macocianradu/homefull-api.git\
|
||||
~/projects/homefull-api
|
||||
git clone https://github.com/macocianradu/homefull-gui.git\
|
||||
~/projects/homefull-gui
|
||||
echo "----- Cloning homefull-api -----"
|
||||
if [ -d "~projects/homefull-api" ]; then
|
||||
echo "[Skipped] homefull-api already exists"
|
||||
else
|
||||
git clone https://github.com/macocianradu/homefull-api.git\
|
||||
~/projects/homefull-api
|
||||
fi
|
||||
|
||||
git clone --depth 1 https://github.com/wbthomason/packer.nvim\
|
||||
~/.local/share/nvim/site/pack/packer/start/packer.nvim
|
||||
echo "----- Cloning homefull-gui -----"
|
||||
if [ -d "~projects/homefull-gui" ]; then
|
||||
echo "[Skipped] homefull-gui already exists"
|
||||
else
|
||||
git clone https://github.com/macocianradu/homefull-gui.git\
|
||||
~/projects/homefull-gui
|
||||
fi
|
||||
|
||||
echo "----- Cloning packer -----"
|
||||
if [ -d "~/.local/share/nvim/site/pack/packer/start/packer.nvim" ]; then
|
||||
echo "[Skipped] Packer already exists"
|
||||
else
|
||||
git clone --depth 1 https://github.com/wbthomason/packer.nvim\
|
||||
~/.local/share/nvim/site/pack/packer/start/packer.nvim
|
||||
fi
|
||||
|
||||
echo "----- Downloading NVIM -----"
|
||||
if [[ "$OSTYPE" == "linux-gnu"* ]]; then
|
||||
curl -LO https://github.com/neovim/neovim/releases/latest/download/nvim-linux64.tar.gz
|
||||
tar xzf nvim-linux64.tar.gz
|
||||
/usr/
|
||||
usr/
|
||||
elif [[ "$OSTYPE" == "darwin"* ]]; then
|
||||
curl -LO https://github.com/neovim/neovim/releases/download/nightly/nvim-macos-arm64.tar.gz
|
||||
tar xzf nvim-macos-arm64.tar.gz
|
||||
mv nvim-macos-arm64.tar.gz ~/Applications/nvim/
|
||||
if [ -d "~Applications/nvim" ]; then
|
||||
echo "[Skipped] NVIM already installed"
|
||||
else
|
||||
curl -LO https://github.com/neovim/neovim/releases/download/nightly/nvim-macos-arm64.tar.gz
|
||||
tar xzf nvim-macos-arm64.tar.gz
|
||||
mv nvim-macos-arm64.tar.gz ~/Applications/nvim/
|
||||
fi
|
||||
fi
|
||||
|
||||
echo "----- Copying NVIM configuration -----"
|
||||
ln -s ~/projects/setup/.config/nvim ~/.config/nvim
|
||||
ln -s ~/projects/setup/.vim/undodir ~/.vim/undodir
|
||||
|
||||
echo "----- Running PackerSync -----"
|
||||
nvim --headless -c 'autocmd User PackerComplete quitall' -c 'PackerSync'
|
||||
|
||||
Reference in New Issue
Block a user