mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-05 07:55:46 +00:00
Update cheatsheets
This commit is contained in:
4
tldr/fd
4
tldr/fd
@@ -29,9 +29,9 @@ source: https://github.com/tldr-pages/tldr.git
|
|||||||
|
|
||||||
`fd {{[-H|--hidden]}} {{[-I|--no-ignore]}} "{{string|regex}}"`
|
`fd {{[-H|--hidden]}} {{[-I|--no-ignore]}} "{{string|regex}}"`
|
||||||
|
|
||||||
- Exclude files that match a specific `regex`:
|
- Exclude files that match a specific glob pattern:
|
||||||
|
|
||||||
`fd {{string}} {{[-E|--exclude]}} {{regex}}`
|
`fd {{string}} {{[-E|--exclude]}} {{glob}}`
|
||||||
|
|
||||||
- Execute a command on each search result returned:
|
- Execute a command on each search result returned:
|
||||||
|
|
||||||
|
|||||||
36
tldr/helix
36
tldr/helix
@@ -5,38 +5,8 @@ source: https://github.com/tldr-pages/tldr.git
|
|||||||
---
|
---
|
||||||
# helix
|
# helix
|
||||||
|
|
||||||
> Helix, A post-modern text editor, provides several modes for different kinds of text manipulation.
|
> This command is an alias of `hx`.
|
||||||
> Pressing `<i>` enters insert mode. `<Esc>` enters normal mode, which enables the use of Helix commands.
|
|
||||||
> More information: <https://manpages.debian.org/testing/hx/editor.1.en.html>.
|
|
||||||
|
|
||||||
- Open a file:
|
- View documentation for the original command:
|
||||||
|
|
||||||
`helix {{path/to/file}}`
|
`tldr hx`
|
||||||
|
|
||||||
- Open files and show them one next each other:
|
|
||||||
|
|
||||||
`helix --vsplit {{path/to/file1 path/to/file2}}`
|
|
||||||
|
|
||||||
- Show the tutorial to learn Helix (or access it within Helix by pressing `<Esc>` and typing `<:>tutor<Enter>`):
|
|
||||||
|
|
||||||
`helix --tutor`
|
|
||||||
|
|
||||||
- Change the Helix theme:
|
|
||||||
|
|
||||||
`<:>theme {{theme_name}}`
|
|
||||||
|
|
||||||
- Save and Quit:
|
|
||||||
|
|
||||||
`<:>wq<Enter>`
|
|
||||||
|
|
||||||
- Force-quit without saving:
|
|
||||||
|
|
||||||
`<:>q!<Enter>`
|
|
||||||
|
|
||||||
- Undo the last operation:
|
|
||||||
|
|
||||||
`<u>`
|
|
||||||
|
|
||||||
- Search for a pattern in the file (press `<n>`/`<N>` to go to next/previous match):
|
|
||||||
|
|
||||||
`</>{{search_pattern}}<Enter>`
|
|
||||||
|
|||||||
36
tldr/hx
36
tldr/hx
@@ -5,8 +5,38 @@ source: https://github.com/tldr-pages/tldr.git
|
|||||||
---
|
---
|
||||||
# hx
|
# hx
|
||||||
|
|
||||||
> This command is an alias of `helix`.
|
> Helix, a post-modern text editor, provides several modes for different kinds of text manipulation.
|
||||||
|
> Pressing `<i>` enters insert mode. `<Esc>` enters normal mode, which enables the use of Helix commands.
|
||||||
|
> More information: <https://manned.org/man/debian-forky/hx>.
|
||||||
|
|
||||||
- View documentation for the original command:
|
- Open a file:
|
||||||
|
|
||||||
`tldr helix`
|
`hx {{path/to/file}}`
|
||||||
|
|
||||||
|
- Open files and show them one next each other:
|
||||||
|
|
||||||
|
`hx --vsplit {{path/to/file1 path/to/file2 ...}}`
|
||||||
|
|
||||||
|
- Show the tutorial to learn Helix (or access it within Helix by pressing `<Esc>` and typing `<:>tutor<Enter>`):
|
||||||
|
|
||||||
|
`hx --tutor`
|
||||||
|
|
||||||
|
- Change the Helix theme:
|
||||||
|
|
||||||
|
`<:>theme {{theme_name}}`
|
||||||
|
|
||||||
|
- Save and Quit:
|
||||||
|
|
||||||
|
`<:>wq<Enter>`
|
||||||
|
|
||||||
|
- Force-quit without saving:
|
||||||
|
|
||||||
|
`<:>q!<Enter>`
|
||||||
|
|
||||||
|
- Undo the last operation:
|
||||||
|
|
||||||
|
`<u>`
|
||||||
|
|
||||||
|
- Search for a pattern in the file (press `<n>`/`<N>` to go to next/previous match):
|
||||||
|
|
||||||
|
`</>{{search_pattern}}<Enter>`
|
||||||
|
|||||||
@@ -24,9 +24,17 @@ source: https://github.com/tldr-pages/tldr.git
|
|||||||
|
|
||||||
`pip install {{[-r|--requirement]}} {{path/to/requirements.txt}}`
|
`pip install {{[-r|--requirement]}} {{path/to/requirements.txt}}`
|
||||||
|
|
||||||
- Install packages from a URL or local file archive (e.g. `.tar.gz`, `.whl`):
|
- Install a package from a local archive or directory:
|
||||||
|
|
||||||
`pip install {{[-f|--find-links]}} {{url|path/to/file}}`
|
`pip install {{path/to/file.whl|path/to/file.tar.gz|path/to/directory}}`
|
||||||
|
|
||||||
|
- Install a package from a Git repository:
|
||||||
|
|
||||||
|
`pip install git+https://{{example.com}}/{{user}}/{{repository}}.git`
|
||||||
|
|
||||||
|
- Install a package from an alternative source (URL or directory) instead of PyPI:
|
||||||
|
|
||||||
|
`pip install {{[-f|--find-links]}} {{url|path/to/directory}} {{package}}`
|
||||||
|
|
||||||
- Install the local package in the current directory in develop (editable) mode:
|
- Install the local package in the current directory in develop (editable) mode:
|
||||||
|
|
||||||
|
|||||||
@@ -16,6 +16,10 @@ source: https://github.com/tldr-pages/tldr.git
|
|||||||
|
|
||||||
`pipx install {{package}}`
|
`pipx install {{package}}`
|
||||||
|
|
||||||
|
- Uninstall a package:
|
||||||
|
|
||||||
|
`pipx uninstall {{package}}`
|
||||||
|
|
||||||
- List installed packages:
|
- List installed packages:
|
||||||
|
|
||||||
`pipx list`
|
`pipx list`
|
||||||
|
|||||||
34
tldr/tio
Normal file
34
tldr/tio
Normal file
@@ -0,0 +1,34 @@
|
|||||||
|
---
|
||||||
|
syntax: markdown
|
||||||
|
tags: [tldr, common]
|
||||||
|
source: https://github.com/tldr-pages/tldr.git
|
||||||
|
---
|
||||||
|
# tio
|
||||||
|
|
||||||
|
> Monitor and interact with serial ports.
|
||||||
|
> See also: `picocom`, `cu`, `minicom`.
|
||||||
|
> More information: <https://github.com/tio/tio#3-usage>.
|
||||||
|
|
||||||
|
- Open a serial port with default settings:
|
||||||
|
|
||||||
|
`tio {{/dev/ttyUSB0}}`
|
||||||
|
|
||||||
|
- Open a serial port with a specific baud rate:
|
||||||
|
|
||||||
|
`tio {{[-b|--baudrate]}} {{9600}} {{/dev/ttyUSB0}}`
|
||||||
|
|
||||||
|
- Open a serial port and log output to a file:
|
||||||
|
|
||||||
|
`tio {{[-L|--log]}} --log-file {{log_file}} {{/dev/ttyUSB0}}`
|
||||||
|
|
||||||
|
- Open a serial port and enable hexadecimal output:
|
||||||
|
|
||||||
|
`tio --output-mode hex {{/dev/ttyUSB0}}`
|
||||||
|
|
||||||
|
- List available serial ports:
|
||||||
|
|
||||||
|
`tio {{[-l|--list]}}`
|
||||||
|
|
||||||
|
- Exit `tio` session:
|
||||||
|
|
||||||
|
`<Ctrl t><q>`
|
||||||
Reference in New Issue
Block a user