Skip to content

Instantly share code, notes, and snippets.

@Guiorgy
Created January 18, 2026 11:08
Show Gist options
  • Select an option

  • Save Guiorgy/cbc5548b23ba7167da66c71d9d6e0662 to your computer and use it in GitHub Desktop.

Select an option

Save Guiorgy/cbc5548b23ba7167da66c71d9d6e0662 to your computer and use it in GitHub Desktop.
Systemd service to periodically update tealdeer (tldr) cache
[Unit]
Description=Update tealdeer (tldr) cache for %i
ConditionACPower=true
After=network.target network-online.target systemd-networkd.service
[Service]
Type=oneshot
User=%i
ExecStart=/usr/bin/tldr --update
# Usage: sudo systemctl enable --now tldr-update@$(whoami).timer
[Unit]
Description=Update tealdeer (tldr) cache for %i
[Timer]
OnCalendar=weekly
RandomizedDelaySec=4h
Persistent=true
[Install]
WantedBy=timers.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment