diff --git a/setup.sh b/setup.sh index 52d5644..3298e3b 100755 --- a/setup.sh +++ b/setup.sh @@ -625,10 +625,16 @@ setup_zoom() { } setup_zsh() { - package_install \ - oh-my-zsh-git `# for zsh plugins` \ - zsh-theme-powerlevel10k `# make zsh look pretty` \ + # install oh my zsh + if [[ ! -d /home/pomp/.oh-my-zsh ]]; then + sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" + # install powerlevel10k theme + git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k + cp .zshrc ~/.zshrc + else + log "zsh already configured. Skipping." + fi }