Hacker GitHub

← All repos

sharkdp/bat

View on GitHub ↗ ★ 61,021 Rust

A cat(1) clone with wings.

90 mentions on Hacker News by 80 people: 19 stories, 71 comments · first 2018-05-01 · latest 2026-04-17

Mentions per year 90 mentions · busiest year 2018 (17)
20082026
  1. …Test case: `seq 1 100 | bat --pager=builtin` Result: immediate exit, no output printed at all. https://github.com/sharkdp/bat/issues/1053
    comment by CGamesPlay · 2026-04-17 · in I made a terminal pager
  2. bat does not look like a pager: https://github.com/sharkdp/bat?tab=readme-ov-file#automatic-...
    comment by teki_one · 2026-04-16 · in I made a terminal pager
  3. bat is the king of pagers. https://github.com/sharkdp/bat
    comment by mnkyprskbd · 2026-04-16 · in I made a terminal pager
  4. https://github.com/atuinsh/atuin for fuzzy shell history (ctrl+r) https://github.com/sharkdp/bat (nice coloured cat replacement) https://github.com/abiosoft/colima (so I don't need docker desktop) https://github.com/duckdb/duckdb…
  5. Give this a shot https://github.com/sharkdp/bat But in all seriousness I’m interested in knowing the answer to this too, just out of sheer curiosity.
    comment by linesofcode · 2026-02-23 · in Ask HN: Have you ever cloned a cat?
  6. …has a diff mode with the -d flag. It is also possible to setup as the difftool that git uses. [0]: https://github.com/sharkdp/bat
  7. …pipe bat output as it falls back to unformated output when it detects a non-interactive terminal. https://github.com/sharkdp/bat?tab=readme-ov-file#file-conca...
    comment by seedie · 2025-10-07 · in Bat: Cat with syntax highlighting
  8. …), Starship for prompt ( https://starship.rs/ ), bat "a cat with wings" for file preview ( https://github.com/sharkdp/bat ).
    comment by stared · 2025-09-23 · in Zoxide: A Better CD Command
  9. “bat” is a pretty good modern “cat” https://github.com/sharkdp/bat
    comment by hnlmorg · 2025-07-18 · in lsr: ls with io_uring
  10. …does have some symbols for every non-printable ASCII character, which you can see as follows with https://github.com/sharkdp/bat (assuming your font has the right characters, which it probably does): $ printf "qq\36\37text\n" | bat -A…
    comment by ilyagr · 2025-04-27 · in TPSV, an Alternative to TSV (and CSV)
  11. …bat for syntax highlighting but haven't used it as a pager. Edit: Oh! That's pretty. Details are at https://github.com/sharkdp/bat?tab=readme-ov-file#man
  12. I page man (and many other things) through bat[0] which improves my experience. [0]: https://github.com/sharkdp/bat
  13. …(modern ls replacement) https://github.com/BurntSushi/erd (modern tree replacement) https://github.com/sharkdp/bat (modern cat(1) replacement) my .zshrc for every system now uses these as drop in replacements
  14. …have git use the pager you like so I set it to my darling : bat git config --global core.pager bat https://github.com/sharkdp/bat/
    comment by cassepipe · 2025-02-25 · in How Core Git Developers Configure Git
  15. so where is 'cat'? https://github.com/sharkdp/bat (Haven't used this one, but it's pretty popular) Where is 'grep'? https://github.com/BurntSushi/ripgrep Use this one often. It's fast af to search a directory of source code. Where is Korn…
    comment by LAC-Tech · 2025-02-23 · in OpenBSD Innovations
  16. …grep with a powerful tui: https://github.com/Genivia/ugrep - I became an instant convert. * batcat: https://github.com/sharkdp/bat ... you really need to use some of its other features to leverage it. It's really nice.
    comment by kristopolous · 2025-02-09 · in Some terminal frustrations
  17. …(find alternative; https://github.com/sharkdp/fd ), bat ("supercharged version of the cat command"; https://github.com/sharkdp/bat ), and hexyl (hex viewer; https://github.com/sharkdp/hexyl ). (And certainly others I've missed!) Pointing…
    comment by ratrocket · 2024-11-19 · in Hyperfine: A command-line benchmarking tool
  18. i like bat, but they also link over to delta :D https://github.com/sharkdp/bat?tab=readme-ov-file#git-diff
  19. …alias vcat for 'vanilla cat' /usr/bin/cat [0] https://dandavison.github.io/delta/grep.html [1] https://github.com/sharkdp/bat
  20. …(ls with some added visual sugar) - https://github.com/ClementTsang/bottom (htop but with graphs) - https://github.com/sharkdp/bat (cat with syntax highlight)
  21. …syntax highlighting. Kind of unexpected to find a concatenation program… which also does that. [1] https://github.com/sharkdp/bat
    comment by avgcorrection · 2024-02-14 · in Hired: A Modern Take on 'Ed'
  22. Good find, thanks! I'll check if I prefer it to moar. As for bat, according to https://github.com/sharkdp/bat#using-bat-on-windows , the Chocolatey package simply installs `less` alongside `bat`. Seems like a good idea, but I haven't tried…
  23. …install GNU tooling as if it were a negative. bat is fancy pager written in Rust. It's on GitHub: https://github.com/sharkdp/bat
  24. …function in my .zshrc with bat (which pages by default, if it's longer than your console height): https://github.com/sharkdp/bat#highlighting---help-messages # in your .bashrc/.zshrc/*rc alias bathelp='bat --plain --language=help' help() {…
  25. …while now. It includes paging, syntax highlighting, line numbers, and is generally very performant. https://github.com/sharkdp/bat
  26. Since we're talking alternatives: - https://github.com/swsnr/mdcat - https://github.com/sharkdp/bat
  27. I would be curious to see how it compares to similar tools: https://github.com/sharkdp/bat/blob/master/doc/alternatives....
  28. Similar to https://github.com/sharkdp/bat but Go instead of Rust
  29. …) - grep => ripgrep ( https://github.com/BurntSushi/ripgrep ) - cat => bat ( https://github.com/sharkdp/bat ) - tree => broot ( https://github.com/Canop/broot ) The person you’re replying to was speaking of a different project - uutils
  30. …markdown. ov is a pager, so there is no rendering of specific files. But it can be used as a bat( https://github.com/sharkdp/bat ) pager. It can also be created using the ov(oviewer) package. Here's a sample:…
  31. …I've found online: - https://linux.die.net/man/1/most (multiple files/windows at once) - https://github.com/sharkdp/bat (uses `less` under the hood, syntax highlighting and git diffs) - https://linux.die.net/man/1/lesskey (add parameters…
    comment by armchairhacker · 2023-01-04 · in Show HN: Ov – feature rich terminal pager
  32. …tried piping `man` to `bat`? Pretty great highlighting - you can export the command to MANPAGER: https://github.com/sharkdp/bat#man
  33. …= ""]]; then else less $input fi } It uses various linux utilities including fzf and batcat( https://github.com/sharkdp/bat ) to open a terminal with all the places where my query comes up (supporting fuzzy search). Since the workhorses…
    comment by muskmusk · 2022-08-15 · in Ask HN: Can I see your scripts?
  34. It looks like bat https://github.com/sharkdp/bat
  35. It's bat https://github.com/sharkdp/bat
  36. It makes you feel less painful reading man pages with bat being the colorized pager. https://github.com/sharkdp/bat#man
  37. …I’ve also been using bat and exa which are pretty good replacements for cat and ls, respectively. https://github.com/sharkdp/bat https://github.com/ogham/exa
  38. It's called bat ( https://github.com/sharkdp/bat )
  39. Looks similar to bat: https://github.com/sharkdp/bat
  40. …more snippets since I'm copying and pasting already. (I'm using "bat" to view files. Get it from https://github.com/sharkdp/bat ) 40 │ ;; Taken from https://karl-voit.at/2017/02/11/my-system-is-foobar/ 53 │ ;; Check if system is GNU/Linux…
  41. …the other two I would miss dearly, standing above some other "new" tools I use very regularly. [0]: https://github.com/sharkdp/bat [1]: https://github.com/junegunn/fzf
    comment by RBerenguel · 2021-06-14 · in Ripgrep 13.0
  42. Some others that look really clean: bat: https://github.com/sharkdp/bat tldr: https://tldr.sh/ fzf: https://github.com/junegunn/fzf
  43. Not to be mixed with the Rust version of `cat` (but with wings): https://github.com/sharkdp/bat/
    comment by batisteo · 2021-02-06 · in Show HN: Ht – HTTPie Clone in Rust
  44. …also colorize man pages quite nicely. The advantage being it will also highlight C code etc. [1]: https://github.com/sharkdp/bat
    comment by indentit · 2020-12-05 · in Reading Manpages Like a Pro (2018)
  45. …for Hacktoberfest in order to help contributors who are completely new to the open source world: - https://github.com/sharkdp/bat/issues/1211 - https://github.com/sharkdp/bat/issues/1213 - https://github.com/sharkdp/bat/issues/1216 Curious…
    comment by sharkdp · 2020-10-03 · in Hacktoberfest Is Now Opt-In
  46. …syntax highlighting, paging and has git integration. It's written by the same developer as fd https://github.com/sharkdp/bat
    comment by petepete · 2020-09-01 · in Htop 3.0
  47. bat is another great alternative https://github.com/sharkdp/bat
  48. …colorized feature-rich alternatives: ls -> [exa]( https://github.com/ogham/exa ) cat -> [bat]( https://github.com/sharkdp/bat ) du -> [ncdu]( https://dev.yorhel.nl/ncdu ) diff -> [delta]( https://github.com/dandavison/delta ) In…
    comment by IggleSniggle · 2020-07-26 · in Colorize Your CLI
  49. …with alacritty for a while. All of them are pretty good https://github.com/alacritty/alacritty https://github.com/sharkdp/bat https://github.com/ogham/exa
  50. …human readable. [0] https://github.com/dandavison/delta [1] https://github.com/trishume/syntect [2] http://github.com/sharkdp/bat/