Update cheatsheets

This commit is contained in:
ivuorinen
2025-11-29 00:20:05 +00:00
parent 5c637b8c84
commit d1988a6d2c
87 changed files with 623 additions and 154 deletions

View File

@@ -7,36 +7,36 @@ source: https://github.com/tldr-pages/tldr.git
> Show the contents of the current directory as a tree.
> Respects the `.gitignore` settings by default.
> More information: <https://github.com/dduan/tre>.
> More information: <https://github.com/dduan/tre#everything-else>.
- Print directories only:
`tre --directories`
`tre {{[-d|--directories]}}`
- Print JSON containing files in the tree hierarchy instead of the normal tree diagram:
`tre --json`
`tre {{[-j|--json]}}`
- Print files and directories up to the specified depth limit (where 1 means the current directory):
`tre --limit {{depth}}`
`tre {{[-l|--limit]}} {{depth}}`
- Print all hidden files and directories using the specified colorization mode:
`tre --all --color {{automatic|always|never}}`
`tre {{[-a|--all]}} {{[-c|--color]}} {{automatic|always|never}}`
- Print files within the tree hierarchy, assigning a shell alias to each file that, when called, will open the associated file using the provided `command` (or in `$EDITOR` by default):
`tre --editor {{command}}`
`tre {{[-e|--editor]}} {{command}}`
- Print files within the tree hierarchy, excluding all paths that match the provided `regex`:
`tre --exclude {{regex}}`
`tre {{[-E|--exclude]}} {{regex}}`
- Display version:
`tre --version`
`tre {{[-V|--version]}}`
- Display help:
`tre --help`
`tre {{[-h|--help]}}`