> "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]
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.
You are right, I do experience some startup time issues as well. There might be an alternative to pygmentize that is faster and supports many color themes, I am not sure! Someone might help us out.
[1] https://news.ycombinator.com/item?id=17879419
---
I personally have this in ~/.bash_profile:
Then if I want syntax highlighting with less, I just type cless <path>.