check if pl10k is already installed

This commit is contained in:
tracer 2023-04-05 17:20:05 +02:00
parent 724c7e9f41
commit ff460c376d

10
setup.sh Normal file → Executable file
View File

@ -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