0
0
Fork 0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2024-09-19 04:01:21 +02:00

Document how to update OMZ from a script

Marc Cornellà 2020-12-13 20:26:37 +01:00
parent 969bf91676
commit 91d647269f
2 changed files with 23 additions and 12 deletions

11
FAQ.md

@ -14,6 +14,7 @@ _If you don't find what you're looking for, and you think it should be covered b
- [How do I change my locale?](#how-do-i-change-my-locale) - [How do I change my locale?](#how-do-i-change-my-locale)
- [How do I reload the zshrc file?](#how-do-i-reload-the-zshrc-file) - [How do I reload the zshrc file?](#how-do-i-reload-the-zshrc-file)
- [How do I reset the completion cache?](#how-do-i-reset-the-completion-cache) - [How do I reset the completion cache?](#how-do-i-reset-the-completion-cache)
- [How do I manually update Oh My Zsh from a script?](#how-do-i-manually-update-oh-my-zsh-from-a-script)
- [COMMON PROBLEMS](#common-problems) - [COMMON PROBLEMS](#common-problems)
- [Font issues](#font-issues) - [Font issues](#font-issues)
- [I have a weird character in my prompt](#i-have-a-weird-character-in-my-prompt) - [I have a weird character in my prompt](#i-have-a-weird-character-in-my-prompt)
@ -143,6 +144,16 @@ rm "$ZSH_COMPDUMP"
exec zsh exec zsh
``` ```
#### How do I manually update Oh My Zsh from a script?
The best way to do that is to call the `upgrade.sh` script directly. If `$ZSH` is defined (it should point to where OMZ is installed), then you can call it like so:
```sh
"$ZSH/tools/upgrade.sh"
```
Another option is to use the `omz` CLI. The `omz update` command triggers an update, but it also shows the changelog and restarts the zsh session (which _might_ cause a restart loop). To avoid that, run it with the `--unattended` flag, like so: `omz update --unattended`. But again, it's better to call the `upgrade.sh` script directly.
## COMMON PROBLEMS ## COMMON PROBLEMS
### Font issues ### Font issues