Easy peasy, lemon squeezy!

Warning: you must install Neofetch first before following these steps. This guide does not apply in some distributions where ZSH or Fish is your default shell.

Assuming bash is your default shell:

Editing the bashrc file in Elementary OS
  1. Edit ~/.bashrc in your favourite editor. This file is located in the root file system, not the Home folder. You may need to open as root, but only if the icon shows a padlock or no entry symbol.
  2. Add a new line with “neofetch” in it (without the quotes), towards the bottom.
  3. Save the file, exit the text editor and restart Terminal.
.bashrc in Code
.bashrc in Code