# tlrc A [tldr](https://tldr.sh) client written in Rust. [![CI](https://img.shields.io/github/actions/workflow/status/acuteenvy/tlrc/ci.yml?label=CI&logo=github&labelColor=363a4f&logoColor=d9e0ee)](https://github.com/acuteenvy/tlrc/actions/workflows/ci.yml) [![release](https://img.shields.io/github/v/release/acuteenvy/tlrc?&logo=github&color=cba6f7&logoColor=d9e0ee&labelColor=363a4f)][latest-release] [![crates.io](https://img.shields.io/crates/v/tlrc?&logo=rust&color=cba6f7&logoColor=d9e0ee&labelColor=363a4f)][crate] [![license](https://img.shields.io/github/license/acuteenvy/tlrc?color=b4befe&labelColor=363a4f)](/LICENSE)
[![github downloads](https://img.shields.io/github/downloads/acuteenvy/tlrc/total?logo=github&color=94e2d5&logoColor=d9e0ee&labelColor=363a4f)][latest-release] [![crates.io downloads](https://img.shields.io/crates/d/tlrc?logo=rust&color=94e2d5&logoColor=d9e0ee&labelColor=363a4f)][crate] ![screenshot](https://user-images.githubusercontent.com/126529524/234939306-d3da4f33-a2b4-472f-abb7-aab7e4ee84be.png)

Installation

Packaging status

Arch Linux

Install tlrc (from source) or tlrc-bin (prebuilt) from the AUR.

From crates.io

To build tlrc from a source tarball, run: cargo install tlrc NOTE: shell completion files and the man page will not be installed that way.

From GitHub Releases

You can find prebuilt binaries here.

Usage

See man tldr or the online manpage. For a brief description, you can also run: tldr --help

Configuration

Tlrc can be customized with a TOML configuration file. To get the default path for your system, run: tldr --config-path To generate a default config file, run: bash tldr --gen-config > $(tldr --config-path) or copy the below example.

Configuration options

```toml [cache]

Override the cache directory.

dir = "/path/to/cache"

Automatically update the cache when it is if it is older than max_age hours.

autoupdate = true maxage = 336

Specify a list of desired page languages. If it is empty, languages specified in

the LANG and LANGUAGE environment variables are downloaded.

English is implied and will always be downloaded.

You can see a list of language codes here: https://github.com/tldr-pages/tldr

Example: ["de", "pl"]

languages = []

[output]

Show the command name in the page.

show_title = true

Prefix descriptions of examples with hyphens.

show_hyphens = false

Strip empty lines from output.

compact = false

Print pages in raw markdown.

raw_markdown = false

Number of spaces to put before each line of the page.

[indent]

Command name.

title = 2

Command description.

description = 2

Descriptions of examples.

bullet = 2

Example command invocations.

example = 4

Style for the title of the page (command name).

[style.title]

Fixed colors: "black", "red", "green", "yellow", "blue", "magenta", "cyan", "white", "default"

256color ANSI code: { color256 = 50 }

RGB: { rgb = [0, 255, 255] }

color = "magenta" background = "default" bold = true underline = false italic = false dim = false strikethrough = false

Style for the description of the page.

[style.description] color = "magenta" background = "default" bold = false underline = false italic = false dim = false strikethrough = false

Style for descriptions of examples.

[style.bullet] color = "green" background = "default" bold = false underline = false italic = false dim = false strikethrough = false

Style for command examples.

[style.example] color = "cyan" background = "default" bold = false underline = false italic = false dim = false strikethrough = false

Style for URLs inside the description.

[style.url] color = "red" background = "default" bold = false underline = false italic = true dim = false strikethrough = false

Style for text surrounded by backticks (`).

[style.inline_code] color = "yellow" background = "default" bold = false underline = false italic = true dim = false strikethrough = false

Style for placeholders inside command examples.

[style.placeholder] color = "red" background = "default" bold = false underline = false italic = true dim = false strikethrough = false ```