I have Ubuntu 16.04 LTS installed on my HP Compaq 6005 SFF and I want to have neofetch run when I open up any terminal application (Yakuake especially)

So how can I make this happen?

up vote 0 down vote accepted

Just put the command in your .bashrc file in your home directory

nano ~/.bashrc

Go to the bottom of the file and type neofetch. Once set there, it will execute every time you start your terminal. The .bashrc is loaded each time you start a terminal session.

  • Where do I find it though when I type it in it gives me this – CalebO5 May 16 at 21:32
  • No command '~nano' found, did you mean: Command 'nano' from package 'nano' (main) Command 'rnano' from package 'nano' (main) ~nano: command not found – CalebO5 May 16 at 21:32
  • (Command from terminal) – CalebO5 May 16 at 21:33
  • nano is a text editor. Most Linux distributions have it installed by default. It's strange you don't have it. You can use any editor to do this, .bashrc is a simple text file. However, you may not be able to see it, because it starts with a dot. Search in your file manager's options and enable showing the hidden files. Then simply open .bashrc with your preferred text editor, go to the bottom and type neofetch. – haralambov May 17 at 16:47
  • Ok thank you for that information and then I add neofetch's command to the .bashrc file right? – CalebO5 May 17 at 17:17

All I did was this

  1. nano ~/.bashrc
  2. Go down to the bottom and type in this a. #NeoFetch (Enter) neofetch
  3. Save the file with Control + X, Enter, Y

And thats it! It now works

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.