Closed docwhat closed 1 year ago
The -d
switch is for it to not show the directory contents when globbing. like in ls
.
e.g. If you want to show all the hidden files in your home directory, the first options would also give you everything inside the hidden directories. With the -d
switch they don't.
$ ls -l .*
$ exa -l .*
$ ls -ld .*
$ exa -ld .*
So, it doesn't make much sense for the -d
switch to be used in tree mode, as the contents of directories aren't being shown.
The -D
switch is what you want.
I missed the -D
/--only-dirs
flag in the manpage.
That is exactly what I wanted.
When using
exa -dT
it acts the same as runningexa -T
.This seems to be because it is ignoring the
-d
flag.If I run in strict mode I get:
I expected this to work the same a
tree
does and just show the directories but not the files.Note how it only counts the directories at the top.
v0.10.1 [+git]
exa -dT
env EXA_STRICT=1 exa -dT
v0.10.1 [+git]