From 3c9743313cc916a6cede71e333eecef4b07ce3ce Mon Sep 17 00:00:00 2001 From: Marc Cornellà Date: Thu, 30 Sep 2021 17:20:22 +0200 Subject: refactor(updater): change auto-update settings to use `zstyle` --- templates/zshrc.zsh-template | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'templates/zshrc.zsh-template') diff --git a/templates/zshrc.zsh-template b/templates/zshrc.zsh-template index 4a998c2fc..7cb87078c 100644 --- a/templates/zshrc.zsh-template +++ b/templates/zshrc.zsh-template @@ -23,14 +23,12 @@ ZSH_THEME="robbyrussell" # Case-sensitive completion must be off. _ and - will be interchangeable. # HYPHEN_INSENSITIVE="true" -# Uncomment the following line to disable bi-weekly auto-update checks. -# DISABLE_AUTO_UPDATE="true" - -# Uncomment the following line to automatically update without prompting. -# DISABLE_UPDATE_PROMPT="true" +# Uncomment the following lines to change the auto-update behavior +# zstyle ':omz:update' mode disabled # disable automatic updates +# zstyle ':omz:update' mode auto # update automatically without asking # Uncomment the following line to change how often to auto-update (in days). -# export UPDATE_ZSH_DAYS=13 +# zstyle ':omz:update' frequency 13 # Uncomment the following line if pasting URLs and other text is messed up. # DISABLE_MAGIC_FUNCTIONS="true" -- cgit v1.2.3-70-g09d2 From 0120749a54d147405beebe6f8416da0e4443ebc4 Mon Sep 17 00:00:00 2001 From: Marc Cornellà Date: Thu, 30 Sep 2021 17:22:04 +0200 Subject: feat(updater): add mode to only remind you to update when it's time (#10187) Fixes #10187 Co-authored-by: NoPreserveRoot --- templates/zshrc.zsh-template | 1 + tools/check_for_upgrade.sh | 2 ++ 2 files changed, 3 insertions(+) (limited to 'templates/zshrc.zsh-template') diff --git a/templates/zshrc.zsh-template b/templates/zshrc.zsh-template index 7cb87078c..58642bc41 100644 --- a/templates/zshrc.zsh-template +++ b/templates/zshrc.zsh-template @@ -26,6 +26,7 @@ ZSH_THEME="robbyrussell" # Uncomment the following lines to change the auto-update behavior # zstyle ':omz:update' mode disabled # disable automatic updates # zstyle ':omz:update' mode auto # update automatically without asking +# zstyle ':omz:update' mode reminder # just remind me to update when it's time # Uncomment the following line to change how often to auto-update (in days). # zstyle ':omz:update' frequency 13 diff --git a/tools/check_for_upgrade.sh b/tools/check_for_upgrade.sh index fa832ffac..e6a4a3d69 100644 --- a/tools/check_for_upgrade.sh +++ b/tools/check_for_upgrade.sh @@ -89,6 +89,8 @@ function update_ohmyzsh() { # Ask for confirmation before updating unless in auto mode if [[ "$update_mode" = auto ]]; then update_ohmyzsh + elif [[ "$update_mode" = reminder ]]; then + echo "[oh-my-zsh] It's time to update! You can do that by running \`omz update\`" else # input sink to swallow all characters typed before the prompt # and add a newline if there wasn't one after characters typed -- cgit v1.2.3-70-g09d2 From 69a45a9c98291dc485ee9c46c9bf79ec8533217b Mon Sep 17 00:00:00 2001 From: Marc Cornellà Date: Wed, 6 Oct 2021 10:04:30 +0200 Subject: chore: zshrc update settings rewording --- templates/zshrc.zsh-template | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'templates/zshrc.zsh-template') diff --git a/templates/zshrc.zsh-template b/templates/zshrc.zsh-template index 58642bc41..7e1c7997c 100644 --- a/templates/zshrc.zsh-template +++ b/templates/zshrc.zsh-template @@ -23,7 +23,7 @@ ZSH_THEME="robbyrussell" # Case-sensitive completion must be off. _ and - will be interchangeable. # HYPHEN_INSENSITIVE="true" -# Uncomment the following lines to change the auto-update behavior +# Uncomment one of the following lines to change the auto-update behavior # zstyle ':omz:update' mode disabled # disable automatic updates # zstyle ':omz:update' mode auto # update automatically without asking # zstyle ':omz:update' mode reminder # just remind me to update when it's time -- cgit v1.2.3-70-g09d2