Initialize a tealdeer configuration file
mainTo create an initial configuration file, run the --seed-config command.
tldr --seed-configrepository·main·Indexed 25 days ago
https://github.com/tealdeer-rs/tealdeerA high-performance Rust implementation of tldr pages, providing simplified, example-based man pages. Tealdeer is a full-featured offline client with caching support that complies with the tldr client specification. Documentation covers installation via package managers or cargo, configuration of display styles, cache management, automatic updates, and search preferences.
To create an initial configuration file, run the --seed-config command.
tldr --seed-configYou can display a randomly selected tldr page by combining tldr with shuf (from GNU coreutils). To make this happen every time you open a new terminal, add the command to your shell configuration file (e.g., .bashrc, .zshrc).
tldr --quiet $(tldr --quiet --list | shuf -n1)Tealdeer uses a local cache of TLDR pages. You can manage this cache using the following commands:
-u, --update to download the latest pages.-c, --clear-cache to remove all cached pages.-l, --list to see all commands currently available in your local cache.tldr -u
tldr -c
tldr -lIf you are not using a system package manager, you can manually install shell completion scripts by copying them from the completion directory to your system's designated location:
cp completion/bash_tealdeer /usr/share/bash-completion/completions/tldrcp completion/fish_tealdeer ~/.config/fish/completions/tldr.fishcp completion/zsh_tealdeer /usr/share/zsh/site-functions/_tldrTealdeer is available in several package managers. You can install it using your system's package manager by searching for the tealdeer package.
Supported package managers include:
tealdeertealdeertealdeersysutils/tealdeerapp-misc/tealdeertealdeertealdeersysutils/tealdeertealdeertealdeertealdeertealdeertealdeerYou can build tealdeer from the source code using cargo build. Depending on your requirements, use one of the following commands:
$ cargo build --release$ cargo build --release --features native-tls$ cargo build --features loggingTo enable logging at runtime for a debug build, export the RUST_LOG=tldr=debug environment variable.
$ cargo build --releaseTealdeer uses a config.toml file for customization. The configuration file path follows OS conventions (e.g., $XDG_CONFIG_HOME/tealdeer/config.toml on Linux).
You can find your specific configuration paths by running:
tldr --show-pathsTo automatically generate a new configuration file, run:
tldr --seed-configOn Linux, this typically creates the file at ~/.config/tealdeer/config.toml.
tldr --show-paths
tldr --seed-configtldr binary. You can use it to view simplified, community-driven man pages for various commands. To see all available command-line options and flags, run tldr --help.tldr --helpTo append your own examples to an existing upstream tldr page without replacing it entirely, create a file named <command>.patch.md in your custom pages directory. Tealdeer will append the content of this file to the end of the existing page.
Note: Since version 1.7.0, the file extension must be .patch.md (previously .patch).
$CUSTOM_PAGES_DIR/<command>.patch.md
Example:
~/.local/share/tealdeer/pages/ufw.patch.md