From 3935ccce647c722bcfdaa771b01613079db20935 Mon Sep 17 00:00:00 2001 From: Dario Vladović Date: Tue, 4 Aug 2020 17:48:29 +0200 Subject: cli: add update command (#9094) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Marc Cornellà --- lib/functions.zsh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/functions.zsh') diff --git a/lib/functions.zsh b/lib/functions.zsh index 678e29ce7..e85b867a5 100644 --- a/lib/functions.zsh +++ b/lib/functions.zsh @@ -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() { -- cgit v1.2.3-70-g09d2