feat: optimize install

This commit is contained in:
max_richter 2021-08-19 17:11:25 +02:00
parent 3e70e8e3ba
commit 93ce33871d
2 changed files with 16 additions and 6 deletions

View File

@ -1,3 +1,8 @@
echo " - cloning github.com/romkatv/powerlevel10k into ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k"
git clone --quiet --depth=1 https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k > /dev/null
FOLDER=${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k
if [ -s $FOLDER ]; then
echo " ✓ powerlevel10k is already installed"
else
echo " - cloning github.com/romkatv/powerlevel10k into $FOLDER"
git clone --quiet --depth=1 https://github.com/romkatv/powerlevel10k.git $FOLDER > /dev/null
echo " - finished"
fi

View File

@ -1,3 +1,8 @@
echo " - cloning github.com/zsh-users/zsh-autosuggestions into ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions"
git clone --quiet https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions > /dev/null
FOLDER=${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
if [ -s $FOLDER ]; then
echo " ✓ zsh-autosuggestions is already installed"
else
echo " - cloning github.com/zsh-users/zsh-autosuggestions into $FOLDER"
git clone --quiet https://github.com/zsh-users/zsh-autosuggestions $FOLDER > /dev/null
echo " - finished"
fi