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:
Binary file not shown.
25
install.sh
25
install.sh
@@ -1,24 +1,47 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
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\
|
git clone https://github.com/macocianradu/homefull-api.git\
|
||||||
~/projects/homefull-api
|
~/projects/homefull-api
|
||||||
|
fi
|
||||||
|
|
||||||
|
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\
|
git clone https://github.com/macocianradu/homefull-gui.git\
|
||||||
~/projects/homefull-gui
|
~/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\
|
git clone --depth 1 https://github.com/wbthomason/packer.nvim\
|
||||||
~/.local/share/nvim/site/pack/packer/start/packer.nvim
|
~/.local/share/nvim/site/pack/packer/start/packer.nvim
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo "----- Downloading NVIM -----"
|
||||||
if [[ "$OSTYPE" == "linux-gnu"* ]]; then
|
if [[ "$OSTYPE" == "linux-gnu"* ]]; then
|
||||||
curl -LO https://github.com/neovim/neovim/releases/latest/download/nvim-linux64.tar.gz
|
curl -LO https://github.com/neovim/neovim/releases/latest/download/nvim-linux64.tar.gz
|
||||||
tar xzf nvim-linux64.tar.gz
|
tar xzf nvim-linux64.tar.gz
|
||||||
/usr/
|
usr/
|
||||||
elif [[ "$OSTYPE" == "darwin"* ]]; then
|
elif [[ "$OSTYPE" == "darwin"* ]]; then
|
||||||
|
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
|
curl -LO https://github.com/neovim/neovim/releases/download/nightly/nvim-macos-arm64.tar.gz
|
||||||
tar xzf nvim-macos-arm64.tar.gz
|
tar xzf nvim-macos-arm64.tar.gz
|
||||||
mv nvim-macos-arm64.tar.gz ~/Applications/nvim/
|
mv nvim-macos-arm64.tar.gz ~/Applications/nvim/
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo "----- Copying NVIM configuration -----"
|
||||||
ln -s ~/projects/setup/.config/nvim ~/.config/nvim
|
ln -s ~/projects/setup/.config/nvim ~/.config/nvim
|
||||||
ln -s ~/projects/setup/.vim/undodir ~/.vim/undodir
|
ln -s ~/projects/setup/.vim/undodir ~/.vim/undodir
|
||||||
|
|
||||||
|
echo "----- Running PackerSync -----"
|
||||||
nvim --headless -c 'autocmd User PackerComplete quitall' -c 'PackerSync'
|
nvim --headless -c 'autocmd User PackerComplete quitall' -c 'PackerSync'
|
||||||
|
|||||||
Reference in New Issue
Block a user