autoupdate

This commit is contained in:
2026-01-27 21:29:44 +01:00
parent 6ffe4b9e55
commit 97e7fff4e3

9
.zshrc
View File

@@ -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=(