eza icon indicating copy to clipboard operation
eza copied to clipboard

feat: --no-header option

Open aminnairi opened this issue 2 years ago • 3 comments

It would be great to add a --no-header option in order to override the --header option if it has already been used.

The rational is that I'm using eza in an alias for running ls using eza.

However, I would also like to use eza (aliased to ls) in automation script. It would be great for instance to be able to pipe the eza output to fzf for instance for quickly selecting a file.

However, setting the option --header is not ignored when piped to another program.

eza --header | fzf

I guess the solution could be to detect that eza has been piped, and to ignore the --header option, or to add another --no-header option (or both).

A workaround is to simply use /usr/bin/ls with the fully qualified name in case it has been used as an alias for eza.

ls | fzf

aminnairi avatar Jan 06 '24 10:01 aminnairi

Both solutions are good Idea, that can be implemented

MartinFillon avatar Jan 06 '24 11:01 MartinFillon

eza --header | tail -n +2 | fzf ought to work.

Omnikron13 avatar Mar 16 '24 23:03 Omnikron13