Skip to content

Latest commit

 

History

History
47 lines (31 loc) · 1.61 KB

say_it_with_style_in_cli.rst

File metadata and controls

47 lines (31 loc) · 1.61 KB

Say it with style in CLI

.. post:: 2020-04-26
   :author: Michal Bultrowicz
   :tags: CLI, Linux

So I glued some awesome software together into a shell one-liner and now I can make my announcements with a rainbow tortoise on the CLI :)

A pointless story trying to give more context than there really is

My home is on the frontier of the CLI-Land. It's a tough but honest life - without any limitations, but also without some conveniences. I also work from my home, but sometimes you gotta make trips to the crowded and loud GUI-Town for some basic supplies. Like your vital YouTube fix.

Image taken from this article about The VVitch:

The code

The ZSH function (should be compatible with Bash) looks like this:

function say()
{
    clear
    # I know, it's a tortoise, ugh :) Upstream problems
    cowsay -f turtle "$@" | lolcat --freq 0.2 --seed 900 --speed 300 --animate
}

and can be found in my configs' and scripts' repo.