feat: Use is-terminal
crate to mimic exact ls
output even with flags when being piped.
#527
Labels
is-terminal
crate to mimic exact ls
output even with flags when being piped.
#527
There is a big problem! So, I use
eza --icons
as myls
alias, and often times I want togrep
something fromls
, or pipe thels
output into something likefzf
, the problem is that the icons and colors are included. I have found a way to solve this though:https://crates.io/crates/is-terminal
This crate allows you to tell various things, such as, is the output of the command being piped into another program?
Bat (a
cat
replacement), does this. It has fancy output when just being used as is, but when you pipebat
intogrep
for example, it produces the same exact output ascat
.The text was updated successfully, but these errors were encountered: