Like lolcat, but fast
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Stephen d8a0d858a9 Cut new release 7 months ago
src Collapse nested if block 7 months ago
.gitignore Basic functionality 7 months ago
Cargo.lock Cut new release 7 months ago
Cargo.toml Cut new release 7 months ago
Jenkinsfile CI 7 months ago Add license 7 months ago Change install location in readme 7 months ago
screenshot.png Update readme 7 months ago


dotacat is meant to be a replacement to lolcat. If you're not aware, lolcat is a rather silly program which behaves like cat, but produces a colourful, rainbow output.



$ time echo hi | lolcat
real    0m0.422s
user    0m0.393s
sys     0m0.028s

I use lolcat in my .bashrc file, so this amount of time is not ideal for me.

In contrast:

time echo hi | dotacat

real    0m0.045s
user    0m0.030s
sys     0m0.020s

Why the name?

Because Dota is better than LoL (According to people - I play neither)


If you have cargo installed, just run: cargo install dotacat

If not, head over to the releases page and download the latest release. Then run:

chmod +x dotacat
sudo mv dotacat /usr/local/bin


    dotacat [FLAGS] [OPTIONS] [files]...

    <files>...    Files to concatenate(`-` for STDIN)

    -h, --help       Prints help information
    -i, --invert     Invert fg and bg
    -V, --version    Prints version information

    -F, --freq <freq>        Rainbow frequency [default: 0.1]
    -S, --seed <seed>        Rainbow seed, 0 = random [default: 0.0]
    -p, --spread <spread>    Rainbow spread [default: 1.0]

	dotacat f - g	Output f's contents, then stdin, then g's contents.
	fortune | dotacat	Display a rainbow cookie.