Terminal, can I haz nice welcome image?

During a presentation yesterday at the cologne.rb @railsbros_andi showed his terminal. It had a nice spiderman ascii art on top of the input line. This inspired me to investigate how to add a nice image when opening a new shell.

My result looks like this:

Now every time I open my shell, I am greeted by the joker. How cool is that ;) ? You can see the code behind that in this commit.

But how did I do that? Luckily it was not that hard. After searching the web for possible image converters I found icat on github. Simply install it and let it convert an image. Pipe that image to a text file and cat that at the start of your shell. Done.

brew install imlib2
git clone https://github.com/atextor/icat
cd icat
make
./icat ~/joker.png > ~/.dotfiles/logo.ascii

And now you have to find an image that you want to use :smile: .

Portrait photo of Bodo Tasche
Bodo Tasche
Polyglot Developer

I am a freelance polyglot developer and love HTML5, testing, JavaScript, Ruby and Elixir. In the last 20 years I have been in lots of different roles, from Java to Elixir, from backend developer at a 3 people team in an early phase startup to the CTO of a web agency.

Need help developing your MVP or to add new features into your current app? Need a CTO or a front/backend developer for hire? Send me an email.