riazj.com

source code for this website
git clone https://riazj.com/git/riazj.com
Log | Files | Refs | LICENSE

commit 8481a98af186205c4ccf39b35cfe5729b9a128c0
parent 094462bcedb0b20720e2670307587ffd3f0f5847
Author: Riaz <riaz@riazj.com>
Date:   Sat, 19 Jul 2025 07:28:40 -0700

Write article about simple tldr client

Diffstat:
Aarticles/tldr.html | 24++++++++++++++++++++++++
Mindex.html | 3++-
2 files changed, 26 insertions(+), 1 deletion(-)

diff --git a/articles/tldr.html b/articles/tldr.html @@ -0,0 +1,24 @@ +<!DOCTYPE html> +<html lang="en"> +<head> +<meta charset="utf-8"> +<title>Simple TLDR Client Written in POSIX Shell | Riaz's Website</title> +<link rel="stylesheet" href="/style.css"> +<link rel="icon" href="data:,"> +<meta name="description" content="Simple tldr client written in less than ten lines of POSIX shell"> +<meta name="viewport" content="width=device-width, initial-scale=1"> +</head> +<body> +<h1>Simple TLDR Client Written in POSIX Shell</h1> +<hr> +<article> +<p>I got annoyed that the tldr client I was using downloaded pages only a week after they were last downloaded. (How often do the options of coreutils change?)</p> +<p>When I searched for a setting to only use the cache, I realized that I wasn't using most features of the client across its hundreds of lines of code, so I wrote my own with only what I need.</p> +<p>The script uses cat to output the markdown, making it instantaneous. The only arguments are the command and optionally a platform. You can find it <a href="/git/dotfiles/file/.local/bin/tldr.html">here</a>, and the latest release of the tldr pages <a href="https://github.com/tldr-pages/tldr/releases/latest/download/tldr.zip">here</a>.</p> +<p>When searching for a subcommand (e.g., git log), use a hyphen, preventing "log" from being used as the platform.</p> +</article> +<footer> +<hr> +<a href="/">Home Page</a></footer> +</body> +</html> diff --git a/index.html b/index.html @@ -12,9 +12,10 @@ <h1>Riaz's Website</h1> <main> <p>I go by the online name Riaz. This is where I share my work.</p> -<nav><a href="https://codeberg.org/Riaz">Code</a> | <a href="contact">Contact</a> | <a href="links">Links</a></nav> +<nav><a href="git/">Code</a> | <a href="contact">Contact</a> | <a href="links">Links</a></nav> <h2>Articles</h2> <ul> +<li><time datetime="2025-07-19">2025 Jul 19</time> <a href="/articles/tldr">Simple TLDR Client Written in POSIX Shell</a></li> <li><time datetime="2025-06-08">2025 Jun 08</time> <a href="/articles/cli-dictionary">The Best Offline Command-Line English Dictionary</a></li> <li><time datetime="2025-02-27">2025 Feb 27</time> <a href="/articles/format-html">I Quit Using Prettier to Format HTML</a></li> <li><time datetime="2024-12-06">2024 Dec 06</time> <a href="/articles/powerschool-absence">Unable to Submit PowerSchool Absence Reports</a></li>