From ff460c376dbf542224eeb921ad8e014b2d72ee45 Mon Sep 17 00:00:00 2001 From: tracer Date: Wed, 5 Apr 2023 17:20:05 +0200 Subject: [PATCH] check if pl10k is already installed --- setup.sh | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) mode change 100644 => 100755 setup.sh diff --git a/setup.sh b/setup.sh old mode 100644 new mode 100755 index d603ee2..1079e0e --- a/setup.sh +++ b/setup.sh @@ -1,7 +1,13 @@ #!/bin/sh -cp Settings/.zshrc Settings/.vimrc Settings/.zprofile Settings/.gitconfig Settings/.p10k.zsh . -git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k +dotPath=".config/dotfiles" + +cp $dotPath/.zshrc $dotPath/.vimrc $dotPath/.zprofile $dotPath/.gitconfig $dotPath/.p10k.zsh . +if [ -d ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k ]; then + echo "pl10k already exists, skipping" +else + git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k +fi if [ $(id -u) -ne 0 ] then