From a13204c4b5c8d3607cfe16c4b897d54502561116 Mon Sep 17 00:00:00 2001 From: Fabian Ising Date: Tue, 5 Aug 2025 12:33:05 +0200 Subject: [PATCH] [ZSH] Add autopull for repo --- zsh/.zshrc | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/zsh/.zshrc b/zsh/.zshrc index 54ab081..220ad0f 100644 --- a/zsh/.zshrc +++ b/zsh/.zshrc @@ -6,6 +6,16 @@ [[ -f ~/.zsh/.virtual_env_config.zsh ]] && source ~/.zsh/.virtual_env_config.zsh [[ -f ~/.zsh/.local_config ]] && source ~/.zsh/.local_config +function update_dotfiles () { +cd ~/dotfiles +sleep 120 +fetch=$(git fetch) +if [[ -n "$fetch" ]]; then + git pull || echo "git pull of dotfiles failed, please see log." +fi +} + +update_dotfiles &| # Load Antidote mkdir -p ${ZDOTDIR:-~}/.cache/zsh