How do I display a terminal banner after clearing the terminal

NOCxyB0i :

so I set up my terminal banner with figlet and I really like it. But it will only be displayed after opening a new terminal. My question is: Can I somehow display a banner after I hit "clear"?

Yonatan :

You'll have to edit your .bashrc file and add the following line:

alias clear='clear && (the figlet command you use)' 

Then it will start up every time you type clear.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=19901&siteId=1