diff --git a/install/p10k.sh b/install/p10k.sh index 16d7306..cf20940 100755 --- a/install/p10k.sh +++ b/install/p10k.sh @@ -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 \ No newline at end of file diff --git a/install/zsh-autosuggestions.sh b/install/zsh-autosuggestions.sh index 35f7e8c..8413880 100755 --- a/install/zsh-autosuggestions.sh +++ b/install/zsh-autosuggestions.sh @@ -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" \ No newline at end of file +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 \ No newline at end of file