commands.sh

tre

all

Show the contents of the current directory as a tree. Respects the `.gitignore` settings by default.

More info →

Options (9)

-d, --directoriesboolean

Print directories only

Example: tre {{[-d|--directories]}}
-j, --jsonboolean

Print JSON containing files in the tree hierarchy instead of the normal tree diagram

Example: tre {{[-j|--json]}}
-l, --limitboolean

Print files and directories up to the specified depth limit (where 1 means the current directory)

Example: tre {{[-l|--limit]}} {{depth}}
-a, --allboolean

Print all hidden files and directories using the specified colorization mode

Example: tre {{[-a|--all]}} {{[-c|--color]}} {{automatic|always|never}}
-c, --colorboolean

Print all hidden files and directories using the specified colorization mode

Example: tre {{[-a|--all]}} {{[-c|--color]}} {{automatic|always|never}}
-e, --editorboolean

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)

Example: tre {{[-e|--editor]}} {{command}}
-E, --excludeboolean

Print files within the tree hierarchy, excluding all paths that match the provided `regex`

Example: tre {{[-E|--exclude]}} {{regex}}
-h, --helpboolean

Display help

Example: tre {{[-h|--help]}}
-V, --versionboolean

Display version

Example: tre {{[-V|--version]}}

Examples (8)

Print directories only

tre [-d|--directories]

Print JSON containing files in the tree hierarchy instead of the normal tree diagram

tre [-j|--json]

Print files and directories up to the specified depth limit (where 1 means the current directory)

tre [-l|--limit] depth

Print all hidden files and directories using the specified colorization mode

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 [-e|--editor] command

Print files within the tree hierarchy, excluding all paths that match the provided `regex`

tre [-E|--exclude] regex

Display help

tre [-h|--help]

Display version

tre [-V|--version]
made by @shridhargupta | data from tldr-pages