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. ▲ 149
    Bat v0.26.0
    story by indentit · 2025-10-20 · 74 comments
  8. …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
  9. ▲ 191
    Bat: Cat with syntax highlighting
    story by Olshansky · 2025-10-05 · 95 comments
  10. …), 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
  11. “bat” is a pretty good modern “cat” https://github.com/sharkdp/bat
    comment by hnlmorg · 2025-07-18 · in lsr: ls with io_uring
  12. ▲ 3
    Bat: Cat with Syntax Highlighting
    story by benzguo · 2025-07-04 · 0 comments
  13. …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)
  14. …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
  15. I page man (and many other things) through bat[0] which improves my experience. [0]: https://github.com/sharkdp/bat
  16. …(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
  17. …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
  18. 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
  19. …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
  20. …(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
  21. i like bat, but they also link over to delta :D https://github.com/sharkdp/bat?tab=readme-ov-file#git-diff
  22. …alias vcat for 'vanilla cat' /usr/bin/cat [0] https://dandavison.github.io/delta/grep.html [1] https://github.com/sharkdp/bat
  23. …(ls with some added visual sugar) - https://github.com/ClementTsang/bottom (htop but with graphs) - https://github.com/sharkdp/bat (cat with syntax highlight)
  24. …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'
  25. 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…
  26. …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
  27. ▲ 3
    Bat: A cat clone for syntax highlighting in the terminal
    story by mxkan3 · 2023-11-10 · 0 comments
  28. …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() {…
  29. ▲ 2
    Bat: A Cat Clone with Wings
    story by thunderbong · 2023-08-18 · 0 comments
  30. …while now. It includes paging, syntax highlighting, line numbers, and is generally very performant. https://github.com/sharkdp/bat
  31. Since we're talking alternatives: - https://github.com/swsnr/mdcat - https://github.com/sharkdp/bat
  32. I would be curious to see how it compares to similar tools: https://github.com/sharkdp/bat/blob/master/doc/alternatives....
  33. Similar to https://github.com/sharkdp/bat but Go instead of Rust
  34. …) - 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
  35. …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:…
  36. …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
  37. …tried piping `man` to `bat`? Pretty great highlighting - you can export the command to MANPAGER: https://github.com/sharkdp/bat#man
  38. ▲ 3
    bat: A cat(1) Clone with Wings
    story by tosh · 2022-10-29 · 2 comments
  39. ▲ 1
    Bat: A cat(1) clone in rust; adds wings
    story by metadat · 2022-10-14 · 0 comments
  40. …= ""]]; 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?
  41. It looks like bat https://github.com/sharkdp/bat
  42. It's bat https://github.com/sharkdp/bat
  43. It makes you feel less painful reading man pages with bat being the colorized pager. https://github.com/sharkdp/bat#man
  44. …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
  45. It's called bat ( https://github.com/sharkdp/bat )
  46. ▲ 6
    Bat: A cat(1) clone with syntax highlighting and Git integration
    story by marcodiego · 2022-05-04 · 0 comments
  47. Looks similar to bat: https://github.com/sharkdp/bat
  48. …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…
  49. ▲ 2
    Bat 0.18.2 released (Windows security fix)
    story by stsewd · 2021-07-13 · 1 comment
  50. …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