[ZSH] Fix autopull

This commit is contained in:
murgi
2025-08-05 14:34:08 +02:00
committed by Fabian Ising
parent a13204c4b5
commit fb8dc68cfd

View File

@@ -6,16 +6,14 @@
[[ -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."
update_dotfiles() {
cd ~/dotfiles || return
if git fetch --dry-run 2>&1 | grep -q .; then
git pull > /dev/null 2>&1
fi
}
update_dotfiles &|
update_dotfiles 2>&1 &!
# Load Antidote
mkdir -p ${ZDOTDIR:-~}/.cache/zsh