From dfb40164cc5ee9147da6ac8e0a4834c5eafe3eb7 Mon Sep 17 00:00:00 2001 From: lin Date: Sat, 2 Nov 2019 15:48:43 +0800 Subject: [PATCH] disable reset .zshrc when upgrade --- tools/upgrade.sh | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/tools/upgrade.sh b/tools/upgrade.sh index 0418b8a23..f93c7f3b5 100755 --- a/tools/upgrade.sh +++ b/tools/upgrade.sh @@ -24,15 +24,15 @@ printf "${BLUE}%s${NORMAL}\n" "Updating Oh My Zsh" cd "$ZSH" if git pull --rebase --stat origin master then - printf "\n${BLUE}%s\n" "update .zshrc" + #printf "\n${BLUE}%s\n" "update .zshrc" - cp "$ZSH/templates/zshrc.zsh-template" ~/.zshrc - sed "/^export ZSH=/ c\\ -export ZSH=\"$ZSH\" -" ~/.zshrc > ~/.zshrc-omztemp - mv -f ~/.zshrc-omztemp ~/.zshrc + #cp "$ZSH/templates/zshrc.zsh-template" ~/.zshrc + #sed "/^export ZSH=/ c\\ +#export ZSH=\"$ZSH\" +#" ~/.zshrc > ~/.zshrc-omztemp + #mv -f ~/.zshrc-omztemp ~/.zshrc - printf "%s\n" "update .zshrc end" + #printf "%s\n" "update .zshrc end" printf '%s' "$GREEN" printf '%s\n' ' __ __ '