x cht
The content is sourced from cheat.sh. Compared to the help document, this module provides comprehensive and concise usage examples, making it easy to find, similar to "cheat sheets".
Examples
Example: Get cheat sheet for ls command
x cht lsExample: Get cheat sheet for Python language
x cht pythonExample: Get Python hello-related examples
x cht python/helloExample: Search cheat sheets containing 'python'
x cht -s pythonExample: Recursively search 'python' in all cheat sheets
x cht -s -r pythonExample: Case-insensitive search for 'PYTHON'
x cht -s -i PYTHONExample: Search with '.py' as word boundary
x cht -s -b .pyExample: Get Python beginner-friendly cheat sheet
x cht --learn pythonExample: Get Python one-liner tricks collection
x cht 1line pythonExample: Get Python weirdness examples collection
x cht weirdness pythonExample: List all available cheat sheets
x cht -lExample: Show cheat.sh introduction and usage guide
x cht -iUsage
x cht [OPTIONS] [FLAGS] [SUB_COMMAND] <#1>Arguments
| Argument | Description |
|---|---|
#1 | Command name, programming language, and cheatsheets (such as python/hello) |
Options
| Name, Shorthand | Default | Description |
|---|---|---|
--1line, :1line, 1line | A single line of code set for programming languages | |
--weirdness | A collection of peculiar examples in programming languages |
Flags
| Name, Shorthand | Description |
|---|---|
-h, --help | Show help using the Cht module |
Sub Commands
| Name | Description |
|---|---|
| x cht :list | list all cheat sheets |
| x cht :intro | cheat.sh introduction, covering the most important usage questions |
| x cht :learn | shows a learn-x-in-minutes language cheat sheet perfect for getting started with the language |
| A single line of code set for programming languages | |
| A collection of peculiar examples in programming languages | |
| x cht :h | Obtain the user manual for cheat.sh |
| x cht --search | Search for a keyword |
| Show help using the Cht module | |
x cht :intro
cheat.sh introduction, covering the most important usage questions
- Usage:
x cht :intro|-ix cht :list
list all cheat sheets
- Usage:
x cht :list|--ls|-lx cht --search
Search for a keyword
- Usage:
x cht --search|-s [FLAGS] <#1>- Arguments:
| Argument | Description |
|---|---|
#1 | keyword |
- Flags:
| Name, Shorthand | Description |
|---|---|
-r | For a recursive search in all cheat sheets |
-i | Case insensitive search |
-b | Keyword as word boundaries |
x cht :learn
shows a learn-x-in-minutes language cheat sheet perfect for getting started with the language
- Usage:
x cht :learn|--learn <#1>- Arguments:
| Argument | Description |
|---|---|
#1 | programming languages |
x cht :h
Obtain the user manual for cheat.sh
- Usage:
x cht :h|:helpTIP
In interactive terminal ( zsh, bash ... ), Can use Tab to get completion information
Run CMD SUBCOMMAND --help for more information on a command
This article author
Please indicate the source and link of this article when reprinting.
Help us make these docs great!
All X-CMD docs are generated from command help and multiple data sources. See something that's wrong or unclear? Feel free to let us know through any of these ways~