cli: add update command (#9094)

Co-authored-by: Marc Cornellà <marc.cornella@live.com>
This commit is contained in:
Dario Vladović 2020-08-04 17:48:29 +02:00 committed by GitHub
commit 3935ccce64
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 13 additions and 2 deletions

View file

@ -7,8 +7,8 @@ function uninstall_oh_my_zsh() {
}
function upgrade_oh_my_zsh() {
env ZSH="$ZSH" sh "$ZSH/tools/upgrade.sh"
command rm -rf "$ZSH/log/update.lock"
echo >&2 "${fg[yellow]}Note: \`$0\` is deprecated. Use \`omz update\` instead.$reset_color"
omz update
}
function take() {