diff --git a/.zshrc b/.zshrc index b8cc485..64efcc2 100644 --- a/.zshrc +++ b/.zshrc @@ -88,6 +88,15 @@ zinit ice as"command" from"gh-r" \ atpull"%atclone" src"init.zsh" zinit light starship/starship +# async dotfiles pull (once/day, after prompt) +zinit ice wait'1' silent nocompile atload' + local marker=~/.cache/.dotfiles-pull + [[ -f $marker && $(($(date +%s) - $(stat -c %Y $marker))) -lt 86400 ]] && return + mkdir -p ~/.cache && touch $marker + git --git-dir=$HOME/.dotgit/ --work-tree=$HOME pull --ff-only -q 2>/dev/null +' +zinit light zdharma-continuum/null + # paths typeset -U path path=(