From dd10bdffd7f5e323971e394c71096d5bad6e853e Mon Sep 17 00:00:00 2001 From: developomp Date: Mon, 11 Oct 2021 10:23:55 +0900 Subject: [PATCH] fixed zsh setup --- setup.sh | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) 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 }