ccat
ccat copied to clipboard
Colorize other commands
Is there any chance of adding colorizing to the other commands, like tail/head/more/less, etc?
As an option, you can forward all arguments to the command(let's take tail as an example).
Assuming this command was passed to the console - ctail -20 ~/Folder1/folder2/.file
It can be transformed into something like tail -20 ~/Folder1/folder2/.file | ccat
As for now, we can manually add support for this. Just add
ctail() {
tail "$@" | ccat
}
to your bash config file(and same for all other functions, if needed). But it would be great to have those functions as built-in, without the need of transforming your bash config file.
nope @artemgurzhii this workaround doesn't work
ctail() {
tail "$@" | ccat
}
when you use the tail -f option
You can overwrite builtin command, e.g:
function ls() {
command ls "$@" | ccat
}