application startup on terminal/shell

Karl Auer kauer at biplane.com.au
Mon Oct 18 17:57:55 UTC 2021


On Mon, 2021-10-18 at 17:41 +0100, Zahid Rahman wrote:
> I want the neofetch app   to run every time I start a new terminal.

There are several files whose specific purpose to is initialise things
when you start new shells in various ways.

Check out:

   /etc/bash.bashrc
   /etc/profile
   ~/.bashrc
   ~/.profile
   ~/.bash_profile 
   ~/.bash_login

Read the "INVOCATION" section of "man bash" for information on when
these files are executed. Since some of them call others of them, It
all gets a bit convoluted :-)

The short answer you probably want is to append a call to neofetch to
your ~/.bashrc file:

   echo >> ~/.bashrc
   echo neofetch >> ~/.bashrc

Regards, K.

-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Karl Auer (kauer at biplane.com.au)
http://www.biplane.com.au/kauer

GPG fingerprint: 61A0 99A9 8823 3A75 871E 5D90 BADB B237 260C 9C58
Old fingerprint: 2561 E9EC D868 E73C 8AF1 49CF EE50 4B1D CCA1 5170







More information about the ubuntu-users mailing list