diff --git a/.zshrc b/.zshrc index 6b86668..1f4d96c 100644 --- a/.zshrc +++ b/.zshrc @@ -26,10 +26,10 @@ case "`uname`" in ;; esac if [ -f .lastcheck ]; then - # if it hasn't been touched in the last 24 hours + # if it hasn't been touched in the last week NOW=`date +%s` LAST=`stat $STATARGS .lastcheck` - if [ $(($NOW - $LAST)) -gt 86400 ]; then + if [ $(($NOW - $LAST)) -gt 604800 ]; then echo "Updating config" git pull touch .lastcheck