Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Delta has been one of those set and forget things, it's been a while since I've seen 'bare' git grep/diff/blame output, I also use it all the time for normal diffs (outside of git repos), but TIL that it also works with ripgrep [0]

As someone else already mentioned there is also bat[1], which was also set and forget, I aliased cat to bat and have a seperate alias vcat for 'vanilla cat' /usr/bin/cat

[0] https://dandavison.github.io/delta/grep.html

[1] https://github.com/sharkdp/bat



You can use \cat to prevent alias expansion.


Or 'command cat', which is a little less convenient but will also handle the case where "cat" is a function, not an alias.

(In bash at least. Not sure about newfangled shells!)


Neat! thanks for sharing. Few times I needed that but I had to go hunting down the full path.


I have ‘ccat’ aliases to the original cat binary


That's even better, thank you!


or you can do =cat on zsh




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: