bat, a cat(1) clone with syntax highlighting, Git integration written in Rust
1–7 of 7 posts
Re: bat, a cat(1) clone with syntax highlighting, Git integration written in Rust
#2[1] https://news.ycombinator.com/item?id=17879419
---
I personally have this in ~/.bash_profile:
cless() {
pygmentize -O style=monokai "$1" 2>/dev/null | less
}
Then if I want syntax highlighting with less, I just type cless .Re: bat, a cat(1) clone with syntax highlighting, Git integration written in Rust
#3> "bat" is not a better version of cat, it's a completely different tool. cat is short for concatenate. If you want to view a file use less, and if you want syntax highlighting etc. then use view (comes with vim).[1] [1] https://news.ycombinator.com/item?id=17879419 --- I personally have this in ~/.bash_profile : cless() { pygmentize -O style=monokai "$1" 2>/dev/null | less } Then if I want syntax highlighting with l…
real 0m8.371s user 0m2.608s sys 0m0.679s
This isn't the first place I work where Python's startup time has been like this. Perhaps it's because all the binaries are on NFS? I don't know.
Re: bat, a cat(1) clone with syntax highlighting, Git integration written in Rust
#4For everything else I already have emacs...
Re: bat, a cat(1) clone with syntax highlighting, Git integration written in Rust
#5> "bat" is not a better version of cat, it's a completely different tool. cat is short for concatenate. If you want to view a file use less, and if you want syntax highlighting etc. then use view (comes with vim).[1] [1] https://news.ycombinator.com/item?id=17879419 --- I personally have this in ~/.bash_profile : cless() { pygmentize -O style=monokai "$1" 2>/dev/null | less } Then if I want syntax highlighting with l…
Head or tail to leave a peak in the terminal history or less to actually read the file, seems to me to be a much better habit.
Thanks for the great tip on cless - I might just extend it to a chead and ctail !
Re: bat, a cat(1) clone with syntax highlighting, Git integration written in Rust
#6> "bat" is not a better version of cat, it's a completely different tool. cat is short for concatenate. If you want to view a file use less, and if you want syntax highlighting etc. then use view (comes with vim).[1] [1] https://news.ycombinator.com/item?id=17879419 --- I personally have this in ~/.bash_profile : cless() { pygmentize -O style=monokai "$1" 2>/dev/null | less } Then if I want syntax highlighting with l…
This is nifty but my work computer's Python interpreter takes so long to even start, let alone import all its modules, that your command is slightly impractical for me. real 0m8.371s user 0m2.608s sys 0m0.679s This isn't the first place I work where Python's startup time has been like this. Perhaps it's because all the binaries are on NFS? I don't know.
Re: bat, a cat(1) clone with syntax highlighting, Git integration written in Rust
#7Am I the only one who prefersmy lean and clean Unix commands to stay lean and clean? For everything else I already have emacs...