[ZSH] Add autopull for repo

This commit is contained in:
Fabian Ising
2025-08-05 12:33:05 +02:00
parent e4400b13a8
commit a13204c4b5

View File

@@ -6,6 +6,16 @@
[[ -f ~/.zsh/.virtual_env_config.zsh ]] && source ~/.zsh/.virtual_env_config.zsh [[ -f ~/.zsh/.virtual_env_config.zsh ]] && source ~/.zsh/.virtual_env_config.zsh
[[ -f ~/.zsh/.local_config ]] && source ~/.zsh/.local_config [[ -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 # Load Antidote
mkdir -p ${ZDOTDIR:-~}/.cache/zsh mkdir -p ${ZDOTDIR:-~}/.cache/zsh