feat: optimize install
This commit is contained in:
parent
3e70e8e3ba
commit
93ce33871d
@ -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
|
||||
echo " - finished"
|
||||
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
|
@ -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
|
||||
echo " - finished"
|
||||
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
|
Loading…
Reference in New Issue
Block a user