feat(tools/tldr): customize styling of Rust-based tlrc tldr client

This commit is contained in:
2024-05-09 02:26:45 +01:00
parent 8e67b0066a
commit f7e1cb03e7
4 changed files with 85 additions and 0 deletions

76
config/tlrc/config.toml Normal file
View File

@@ -0,0 +1,76 @@
[output]
show_title = true
platform_title = false
show_hyphens = true
example_prefix = "- "
compact = false
raw_markdown = false
[indent]
title = 2
description = 2
bullet = 2
example = 4
[style.title]
color = "magenta"
background = "default"
bold = true
underline = false
italic = false
dim = false
strikethrough = false
[style.description]
color = "default"
background = "default"
bold = false
underline = false
italic = false
dim = false
strikethrough = false
[style.bullet]
color = "default"
background = "default"
bold = false
underline = false
italic = false
dim = false
strikethrough = false
[style.example]
color = "green"
background = "default"
bold = false
underline = false
italic = false
dim = false
strikethrough = false
[style.url]
color = "cyan"
background = "default"
bold = false
underline = true
italic = false
dim = false
strikethrough = false
[style.inline_code]
color = "yellow"
background = "default"
bold = false
underline = false
italic = false
dim = false
strikethrough = false
[style.placeholder]
color = "red"
background = "default"
bold = false
underline = false
italic = false
dim = false
strikethrough = false

View File

@@ -19,6 +19,7 @@ SYMLINKS=(
config/mise/settings.toml
config/solargraph/config.yml
config/starship.toml
config/tlrc/config.toml
config/xkeysnail/config.py
default-gems
default-go-packages

7
zsh/tldr.zsh Normal file
View File

@@ -0,0 +1,7 @@
#
# tldr Setup
#
if command-exists tldr && [ -f "$HOME/.config/tlrc/config.toml" ]; then
alias tldr='tldr --config $HOME/.config/tlrc/config.toml'
fi

1
zshrc
View File

@@ -195,6 +195,7 @@ source "$DOTZSH/fzf.zsh"
source "$DOTZSH/less.zsh"
source "$DOTZSH/neovim.zsh"
source "$DOTZSH/nix.zsh"
source "$DOTZSH/tldr.zsh"
source "$DOTZSH/tmux.zsh"
source "$DOTZSH/zoxide.zsh"