From be266d6567ee27febbf52142ae72c51d30dcc96d Mon Sep 17 00:00:00 2001 From: ivuorinen Date: Sun, 19 May 2024 00:15:19 +0000 Subject: [PATCH] Update cheatsheets --- tldr/alacritty | 8 ++++---- tldr/d2 | 11 ++++++----- 2 files changed, 10 insertions(+), 9 deletions(-) diff --git a/tldr/alacritty b/tldr/alacritty index fc59517e..08346369 100644 --- a/tldr/alacritty +++ b/tldr/alacritty @@ -20,10 +20,10 @@ source: https://github.com/tldr-pages/tldr.git `alacritty -e {{command}}` -- Use an alternative configuration file (defaults to `$XDG_CONFIG_HOME/alacritty/alacritty.yml`): +- Use an alternative configuration file (defaults to `$XDG_CONFIG_HOME/alacritty/alacritty.toml`): -`alacritty --config-file {{path/to/config.yml}}` +`alacritty --config-file {{path/to/config.toml}}` -- Run with live configuration reload enabled (can also be enabled by default in `alacritty.yml`): +- Run with live configuration reload enabled (can also be enabled by default in `alacritty.toml`): -`alacritty --live-config-reload --config-file {{path/to/config.yml}}` +`alacritty --live-config-reload --config-file {{path/to/config.toml}}` diff --git a/tldr/d2 b/tldr/d2 index a0fd11f1..9cf4d0cd 100644 --- a/tldr/d2 +++ b/tldr/d2 @@ -6,15 +6,16 @@ source: https://github.com/tldr-pages/tldr.git # d2 > A modern diagram scripting language that turns text to diagrams. +> Note: the output file supports SVG and PNG file formats. > More information: . -- Compile and render a D2 source file into an SVG or PNG file: +- Compile and render a D2 source file into an output file: -`d2 {{path/to/input_file.d2}} {{path/to/output_file.svg|path/to/output_file.png}}` +`d2 {{path/to/input_file.d2}} {{path/to/output_file.ext}}` - [w]atch live changes made to a D2 source file in the default web browser: -`d2 --watch {{path/to/input_file.d2}} {{path/to/output_file.svg|path/to/output_file.png}}` +`d2 --watch {{path/to/input_file.d2}} {{path/to/output_file.ext}}` - Format a D2 source file: @@ -26,8 +27,8 @@ source: https://github.com/tldr-pages/tldr.git - Use a different [t]heme for the output file (list available themes first to get the desired `theme_id`): -`d2 --theme {{theme_id}} {{path/to/input_file.d2}} {{path/to/output_file.svg|path/to/output_file.png}}` +`d2 --theme {{theme_id}} {{path/to/input_file.d2}} {{path/to/output_file.ext}}` - Make rendered diagrams look like hand [s]ketches: -`d2 --sketch true {{path/to/input_file.d2}} {{path/to/output_file.svg|path/to/output_file.png}}` +`d2 --sketch true {{path/to/input_file.d2}} {{path/to/output_file.ext}}`