mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-01-23 02:35:38 +01:00
update .zshrc when upgrade
This commit is contained in:
parent
c65a06ffb0
commit
a5f8fc27c9
1 changed files with 8 additions and 0 deletions
|
|
@ -24,6 +24,14 @@ printf "${BLUE}%s${NORMAL}\n" "Updating Oh My Zsh"
|
|||
cd "$ZSH"
|
||||
if git pull --rebase --stat origin master
|
||||
then
|
||||
printf '%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'
|
||||
|
||||
printf '%s' "$GREEN"
|
||||
printf '%s\n' ' __ __ '
|
||||
printf '%s\n' ' ____ / /_ ____ ___ __ __ ____ _____/ /_ '
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue