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
20082026
-
…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 -
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 -
bat is the king of pagers. https://github.com/sharkdp/bat
comment by mnkyprskbd · 2026-04-16 · in I made a terminal pager -
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…
comment by Zizizizz · 2026-04-01 · in Ask HN: What dev tools do you rely on that nobody talks about? -
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? -
…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
comment by worksonmine · 2026-01-06 · in Stop Doom Scrolling, Start Doom Coding: Build via the terminal from your phone -
▲ 149
Bat v0.26.0story by indentit · 2025-10-20 · 74 comments
-
…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 -
▲ 191
Bat: Cat with syntax highlightingstory by Olshansky · 2025-10-05 · 95 comments
-
…), 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 -
“bat” is a pretty good modern “cat” https://github.com/sharkdp/bat
comment by hnlmorg · 2025-07-18 · in lsr: ls with io_uring -
▲ 3
Bat: Cat with Syntax Highlightingstory by benzguo · 2025-07-04 · 0 comments
-
…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) -
…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
comment by kstrauser · 2025-04-09 · in Man pages are great, man readers are the problem -
I page man (and many other things) through bat[0] which improves my experience. [0]: https://github.com/sharkdp/bat
comment by Jenk · 2025-04-09 · in Man pages are great, man readers are the problem -
…(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
comment by evanwpm · 2025-03-09 · in Rewriting essential Linux packages in Rust -
…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 -
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 -
…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 -
…(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 -
i like bat, but they also link over to delta :D https://github.com/sharkdp/bat?tab=readme-ov-file#git-diff
comment by pgray · 2024-11-09 · in Delta: A syntax-highlighting pager for Git, diff, grep, and blame output -
…alias vcat for 'vanilla cat' /usr/bin/cat [0] https://dandavison.github.io/delta/grep.html [1] https://github.com/sharkdp/bat
comment by SushiHippie · 2024-11-09 · in Delta: A syntax-highlighting pager for Git, diff, grep, and blame output -
…(ls with some added visual sugar) - https://github.com/ClementTsang/bottom (htop but with graphs) - https://github.com/sharkdp/bat (cat with syntax highlight)
comment by arlort · 2024-03-21 · in Difftastic, a structural diff tool that understands syntax -
…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' -
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…
comment by ilyagr · 2024-01-02 · in Ugrep – a more powerful, fast, user-friendly, compatible grep -
…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
comment by burntsushi · 2023-12-31 · in Ugrep – a more powerful, fast, user-friendly, compatible grep -
▲ 3
Bat: A cat clone for syntax highlighting in the terminalstory by mxkan3 · 2023-11-10 · 0 comments
-
…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() {…
comment by SushiHippie · 2023-09-28 · in Tell HN: Please don't print –-help to stderr in your CLI tools -
▲ 2
Bat: A Cat Clone with Wingsstory by thunderbong · 2023-08-18 · 0 comments
-
…while now. It includes paging, syntax highlighting, line numbers, and is generally very performant. https://github.com/sharkdp/bat
comment by jamespullar · 2023-06-27 · in macOS command-line tools you might not know about -
Since we're talking alternatives: - https://github.com/swsnr/mdcat - https://github.com/sharkdp/bat
comment by 3np · 2023-05-01 · in Show HN: Frogmouth – A Markdown browser for the terminal -
I would be curious to see how it compares to similar tools: https://github.com/sharkdp/bat/blob/master/doc/alternatives....
comment by jpe90 · 2023-04-04 · in Show HN: Gat – cat alternative written in Go -
Similar to https://github.com/sharkdp/bat but Go instead of Rust
comment by coffee-- · 2023-04-04 · in Show HN: Gat – cat alternative written in Go -
…) - 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
comment by nindalf · 2023-03-02 · in Bsdutils: Alternative to GNU coreutils using software from FreeBSD -
…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:…
comment by noborus · 2023-01-04 · in Show HN: Ov – feature rich terminal pager -
…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 -
…tried piping `man` to `bat`? Pretty great highlighting - you can export the command to MANPAGER: https://github.com/sharkdp/bat#man
comment by jasonjmcghee · 2022-11-11 · in Tell HN: On macOS, `man-preview` opens man pages in Preview -
▲ 3
bat: A cat(1) Clone with Wingsstory by tosh · 2022-10-29 · 2 comments
-
▲ 1
Bat: A cat(1) clone in rust; adds wingsstory by metadat · 2022-10-14 · 0 comments
-
…= ""]]; 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? -
It looks like bat https://github.com/sharkdp/bat
comment by lfx · 2022-05-31 · in Python-patterns – A collection of design patterns/idioms in Python -
It's bat https://github.com/sharkdp/bat
comment by CraigJPerry · 2022-05-31 · in Python-patterns – A collection of design patterns/idioms in Python -
It makes you feel less painful reading man pages with bat being the colorized pager. https://github.com/sharkdp/bat#man
comment by mekster · 2022-05-21 · in A simple, fast and user-friendly alternative to ‘find’ -
…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
comment by plandis · 2022-05-20 · in A simple, fast and user-friendly alternative to ‘find’ -
It's called bat ( https://github.com/sharkdp/bat )
comment by scheme271 · 2022-05-06 · in Deploying Kubernetes clusters in increasingly absurd languages -
▲ 6
Bat: A cat(1) clone with syntax highlighting and Git integrationstory by marcodiego · 2022-05-04 · 0 comments
-
Looks similar to bat: https://github.com/sharkdp/bat
comment by chme · 2022-01-31 · in Show HN: Rich-CLI – A CLI toolbox for highlighting, Markdown, JSON and rich text -
…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…
comment by bloopernova · 2021-10-17 · in Obsidian – A knowledge base from a local folder of plain text Markdown files -
▲ 2
Bat 0.18.2 released (Windows security fix)story by stsewd · 2021-07-13 · 1 comment
-
…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