mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-01-30 02:44:42 +01:00
fix
This commit is contained in:
parent
a5f8fc27c9
commit
556d535921
1 changed files with 4 additions and 2 deletions
|
|
@ -24,13 +24,15 @@ printf "${BLUE}%s${NORMAL}\n" "Updating Oh My Zsh"
|
||||||
cd "$ZSH"
|
cd "$ZSH"
|
||||||
if git pull --rebase --stat origin master
|
if git pull --rebase --stat origin master
|
||||||
then
|
then
|
||||||
printf '%s\n' 'update .zshrc'
|
printf "\n${BLUE}%s\n" "update .zshrc"
|
||||||
|
|
||||||
cp "$ZSH/templates/zshrc.zsh-template" ~/.zshrc
|
cp "$ZSH/templates/zshrc.zsh-template" ~/.zshrc
|
||||||
sed "/^export ZSH=/ c\\
|
sed "/^export ZSH=/ c\\
|
||||||
export ZSH=\"$ZSH\"
|
export ZSH=\"$ZSH\"
|
||||||
" ~/.zshrc > ~/.zshrc-omztemp
|
" ~/.zshrc > ~/.zshrc-omztemp
|
||||||
mv -f ~/.zshrc-omztemp ~/.zshrc
|
mv -f ~/.zshrc-omztemp ~/.zshrc
|
||||||
printf '%s\n' 'update .zshrc'
|
|
||||||
|
printf "%s\n" "update .zshrc end"
|
||||||
|
|
||||||
printf '%s' "$GREEN"
|
printf '%s' "$GREEN"
|
||||||
printf '%s\n' ' __ __ '
|
printf '%s\n' ' __ __ '
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue