mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-09-10 17:13:50 +02:00
tre: add page (#10387)
Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com> Co-authored-by: Lena <126529524+acuteenvy@users.noreply.github.com>
This commit is contained in:
parent
1a33599527
commit
288588a381
1 changed files with 37 additions and 0 deletions
37
pages/common/tre.md
Normal file
37
pages/common/tre.md
Normal file
|
@ -0,0 +1,37 @@
|
|||
# tre
|
||||
|
||||
> Show the contents of the current directory as a tree.
|
||||
> Respects the `.gitignore` settings by default.
|
||||
> More information: <https://github.com/dduan/tre>.
|
||||
|
||||
- Print directories only:
|
||||
|
||||
`tre --directories`
|
||||
|
||||
- Print JSON containing files in the tree hierarchy instead of the normal tree diagram:
|
||||
|
||||
`tre --json`
|
||||
|
||||
- Print files and directories up to the specified depth limit (where 1 means the current directory):
|
||||
|
||||
`tre --limit {{depth}}`
|
||||
|
||||
- Print all hidden files and directories using the specified colorization mode:
|
||||
|
||||
`tre --all --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}}`
|
||||
|
||||
- Print files within the tree hierarchy, excluding all paths that match the provided regular expression:
|
||||
|
||||
`tre --exclude {{regular_expression}}`
|
||||
|
||||
- Display version:
|
||||
|
||||
`tre --version`
|
||||
|
||||
- Display help:
|
||||
|
||||
`tre --help`
|
Loading…
Add table
Reference in a new issue