Finalize automatic updates

All instances of dotfiles from this point forward will
now ask to update automatically every 2 weeks

Delete ~/.dotfiles-update to restart the counter
This commit is contained in:
David Todd (c0de)
2018-02-10 23:18:23 -06:00
parent 3f71537d9d
commit 56444c027c
3 changed files with 25 additions and 11 deletions

View File

@@ -15,6 +15,9 @@ export _DOTFILES="${HOME}/dotfiles"
# Allow automatic updates
export DISABLE_DOTFILES_AUTO_UPDATE="FALSE"
# Set "true" to update without asking first
export DISABLE_DOTFILES_UPDATE_PROMPT="FALSE"
# Update every 2 weeks (OMZ default)
export UPDATE_DOTFILES_DAYS=13

View File

@@ -42,7 +42,7 @@ bindkey "^[s" insert-sudo
# Check for updates...
# Stolen and modified Oh-My-ZSH's update system
if [ "$DISABLE_DOTFILES_AUTO_UPDATE" != "true" ]; then
env ZSH=$ZSH DOTFILES=$DOTFILES DISABLE_UPDATE_PROMPT=$DISABLE_UPDATE_PROMPT zsh -f $DOTFILES/check_for_upgrade.sh
env ZSH=$ZSH _DOTFILES=$_DOTFILES DISABLE_UPDATE_PROMPT=$DISABLE_DOTFILES_UPDATE_PROMPT zsh -f $_DOTFILES/check_for_upgrade.sh
fi
# Oh-My-ZSH Options below this line