Created
January 18, 2026 11:08
-
-
Save Guiorgy/cbc5548b23ba7167da66c71d9d6e0662 to your computer and use it in GitHub Desktop.
Systemd service to periodically update tealdeer (tldr) cache
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [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