autoupdate
This commit is contained in:
9
.zshrc
9
.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=(
|
||||
|
||||
Reference in New Issue
Block a user