Skip to content

Commit

Permalink
migrate .zsh-update file
Browse files Browse the repository at this point in the history
  • Loading branch information
duchao0726 authored and mcornella committed Jun 15, 2018
1 parent de8299d commit e96a7b7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions oh-my-zsh.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ if [[ -z "$ZSH_CACHE_DIR" ]]; then
ZSH_CACHE_DIR="$ZSH/cache"
fi

# Migrate .zsh-update file to $ZSH_CACHE_DIR
if [ -f ~/.zsh-update ] && [ ! -f ${ZSH_CACHE_DIR}/.zsh-update ]; then
mv ~/.zsh-update ${ZSH_CACHE_DIR}/.zsh-update
fi

# Check for updates on initial load...
if [ "$DISABLE_AUTO_UPDATE" != "true" ]; then
env ZSH=$ZSH ZSH_CACHE_DIR=$ZSH_CACHE_DIR DISABLE_UPDATE_PROMPT=$DISABLE_UPDATE_PROMPT zsh -f $ZSH/tools/check_for_upgrade.sh
Expand Down

0 comments on commit e96a7b7

Please sign in to comment.