News for hackers. Stuff that matters.
Re:CLI: Improved by andrepd on Thursday August 30, 2018 @05:19PM (#17880875)
Re: bat > cat

Cat is just a tool to dump files to stdout and maybe concatenate them. If you want paging, syntax highlighting, etc, you probably want a tool to replace `less`, not `cat`.

Re:CLI: Improved by Nelson69 on Thursday August 30, 2018 @05:43PM (#17881064)
I don't know about bat vs cat, but fcat is actually kind of impressive..

https://github.com/mre/fcat

Re:CLI: Improved by hultner on Friday August 31, 2018 @08:52AM (#17885097)
view is also perfectly good, it's vim's pager.
Re:CLI: Improved by yaakushi on Friday August 31, 2018 @09:59AM (#17885610)
Isn't "view" just an alias to invoke vim on read-only mode (i.e. you can still edit the text, do anything else you can do on vim and then save the contents to another file instead of the original file)?
Re:CLI: Improved by Pete_D on Friday August 31, 2018 @01:52PM (#17887548)
The man page suggests it's equivalent to "vim -R". I usually use that because "view" seems to ignore my .vimrc for some reason.