fix(cli)!: remove harmful --unattended flag for omz update

BREAKING CHANGE: this change removes the `--unattended` flag for the
`omz update` command, which is supposed to be run interactively. If
not, there may be side effects. Use the `upgrade.sh` script directly.
See https://github.com/ohmyzsh/ohmyzsh/wiki/FAQ#how-do-i-update-oh-my-zsh
This commit is contained in:
Marc Cornellà 2025-01-23 20:48:00 +01:00
commit 8e3a62747e
No known key found for this signature in database
GPG key ID: 0314585E776A9C1B
2 changed files with 20 additions and 6 deletions

View file

@ -487,6 +487,17 @@ wait a week?) you just need to run:
omz update
```
> [!NOTE]
> If you want to automate this process in a script, you should call directly the `update` script, like this:
>
> ```sh
> $ZSH/tools/upgrade.sh
> ```
>
> See more options in the [FAQ: How do I update Oh My Zsh?](https://github.com/ohmyzsh/ohmyzsh/wiki/FAQ#how-do-i-update-oh-my-zsh).
>
> **USE OF `omz update --unattended` HAS BEEN REMOVED, AS IT HAS SIDE EFFECTS**.
Magic! 🎉
## Uninstalling Oh My Zsh