2
Let's say I run a command like ls
in fish and get lots of output, how do I scroll through it and still keep the fish formatting or something like it?
ls | less
doesn't keep the formatting.
I know now that the coloring is due to ls
being run as ls -G
. ls -G
produces the same coloring on the default shell on OSX. This suggests that maybe the question is about ls
and not about fish.
On Arch, ls -C --color=always | less -R
does it.
I'm not able to check just no. I suspect you'd need
ls --color=always
and then an option forless
to interpret the color sequences – glenn jackman – 2015-08-03T16:03:53.930