diff --git a/dot_config/resticprofile/profiles.yaml b/dot_config/resticprofile/profiles.yaml index 3049430..406d46a 100644 --- a/dot_config/resticprofile/profiles.yaml +++ b/dot_config/resticprofile/profiles.yaml @@ -9,6 +9,37 @@ groups: - pictures - pictures-local +dotfiles: + repository: "rclone:yadisk:System/Backups/ada-x1/dotfiles" + password-file: "~/.config/resticprofile/pass.txt" + backup: + source: + - ~/dotfiles + - ~/.config + - ~/.ssh + - ~/.claude + - ~/.codex + exclude: + - "**/.cache" + - "**/__pycache__" + - "~/.config/Code" + - "~/.config/BraveSoftware" + - "~/.config/chromium" + - "~/.config/google-chrome" + - "~/.codex/logs_*" + - "~/.codex/sqlite" + - "~/.codex/telemetry" + - "~/.codex/sessions" + - "~/.claude/telemetry" + - "~/.claude/file-history" + - "~/.claude/session-env" + - "~/.claude/projects" + forget: + keep-last: 10 + keep-daily: 14 + keep-weekly: 4 + keep-monthly: 3 + projects: repository: "rclone:yadisk:System/Backups/ada-x1/Documents/Projects" password-file: "~/.config/resticprofile/pass.txt" diff --git a/dot_config/zsh/dot_zshrc b/dot_config/zsh/dot_zshrc index c7e9448..6098578 100644 --- a/dot_config/zsh/dot_zshrc +++ b/dot_config/zsh/dot_zshrc @@ -36,4 +36,12 @@ source "${ZSH_CONFIG_DIR}/prompt.zsh" [[ -z "$TMUX" && "$TERM_PROGRAM" == "kitty" ]] && fastfetch # ═══ Напоминания ════════════════════════════════════════════ -(( ${+functions[_backup_reminder]} )) && _backup_reminder +# Запускаем после первого промпта, чтобы не конфликтовать с p10k instant prompt +if (( ${+functions[_backup_reminder]} )); then + _precmd_backup_reminder() { + _backup_reminder + add-zsh-hook -d precmd _precmd_backup_reminder + unfunction _precmd_backup_reminder + } + add-zsh-hook precmd _precmd_backup_reminder +fi