I've recently added a greeting message (something like 'Hello Alex!') in ~/.bashsrc
file. Now everytime I open a terminal, this command will appear first.
My question is : How do I make to center the command, no matter if my terminal is maximized or not?
One fairly crude way would be to print the string in a field width that uses the value of the terminal's
COLUMNS
variable e.g.If you want something fancier, there are a number of 'banner' packages available - such as
figlet