From 305acdb755a40e71452a69ad58c8fb126e6d3300 Mon Sep 17 00:00:00 2001 From: linsilence Date: Sat, 15 Jun 2019 11:13:40 +0800 Subject: [PATCH] disable replace .zshrc when upgrading --- tools/upgrade.sh | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/tools/upgrade.sh b/tools/upgrade.sh index b386536df..d9007a187 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" - - 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 "\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 +# +# printf "%s\n" "update .zshrc end" printf '%s' "$GREEN" printf '%s\n' ' __ __ '