I am using Ubuntu 22.04 with bash, pretty vanilla, and have added alias cat="batcat"
to ~/.bashrc
. The program batcat
or bat
being referred to can be found here: https://github.com/sharkdp/bat
So, when I run cat ~/.bashrc
, for instance, it outputs the contents of the file using batcat
. However, when I run a command such as crontab -l
, the output appears to be using cat
instead of batcat
.
Any help would be highly appreciated!
It appears that crontab -l
is not using cat
, due to the output of strace crontab -l |& grep cat
. Does that mean there's nothing I can do?
It is still possible to grab the output and feed it into crontab, using crontab -l | batcat
or crontab -l | cat
.