Updating install script and utilizing local mirros when possible

This commit is contained in:
2024-08-24 19:45:25 +02:00
parent 5a383efdd6
commit 2ad80f6eca
4 changed files with 35 additions and 11 deletions

View File

@@ -1,7 +1,13 @@
git clone https://github.com/lifepillar/vim-solarized8.git ~/.vim/pack/themes/opt/solarized8
git clone ssh://git@192.168.0.44:2222/matt/vim-solarized8.git
if [ $? -eq 0 ]; then
echo "Cloned vim solarized theme from local mirror"
else
git clone https://github.com/lifepillar/vim-solarized8.git ~/.vim/pack/themes/opt/solarized8
echo "Cloned vim solarized theme from github"
fi
cat >> ~/.bashrc<< EOF
sh ~/vim-solarized8/scripts/solarized8.sh
sh ~/.vim/pack/themes/opt/solarized8/scripts/solarized8.sh
EOF
cat > ~/.vimrc<< EOF