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 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 manually update Oh My Zsh from a script?](#how-do-i-manually-update-oh-my-zsh-from-a-script)
- [COMMON PROBLEMS](#common-problems)
- [Font issues](#font-issues)
- [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
```
#### 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
### Font issues

24
Home.md

@ -1,6 +1,6 @@
## Welcome to the Oh My Zsh wiki
- If you don't have zsh installed, see [[Installing Zsh]].
- If you don't have zsh installed, see [[Installing Zsh]].
- Once you have zsh, you can install Oh My Zsh, by simply running one of these commands:
| Method | Command |
@ -9,19 +9,19 @@
| **wget** | `sh -c "$(wget -O- https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"` |
| **fetch** | `sh -c "$(fetch -o - https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"` |
- Once installed, take a look at our [[Themes]] and [[Plugins]] (here's a brief overview: [[Plugins Overview]]).
- You can find more at [[External themes]] and [[External plugins]].
- Learn about [[Customization]].
- Having problems? Check out the [[FAQ]] for common problems, or the [[Troubleshooting]] page for instructions on how to diagnose the issue.
- And don't forget to [follow us on twitter](http://twitter.com/ohmyzsh)!
- Once installed, take a look at our [[Themes]] and [[Plugins]] (here's a brief overview: [[Plugins Overview]]).
- You can find more at [[External themes]] and [[External plugins]].
- Learn about [[Customization]].
- Having problems? Check out the [[FAQ]] for common problems, or the [[Troubleshooting]] page for instructions on how to diagnose the issue.
- And don't forget to [follow us on twitter](http://twitter.com/ohmyzsh)!
## Help Wanted
## Help Wanted
- Help us build the [[Cheatsheet]]
- Want to contribute? Check out our [[Code Style Guide]] and [[Design]] guidelines and start hacking away!
- We need [[Volunteers]]
- Help us build the [[Cheatsheet]]
- Want to contribute? Check out our [[Code Style Guide]] and [[Design]] guidelines and start hacking away!
- We need [[Volunteers]]
## Community
## Community
- Read our user [[Testimonials]].
- Read our user [[Testimonials]].
- [[Articles]] Have you written a blog post/article that mentions Oh My Zsh?