Anonymous Anonymous - 2 years ago 253
Bash Question

how to make screenfetch appear automatically

Im trying to make screenfetch command execute automatically.

I opened bash file using

nano~/.bash_profile


typed screenfetch in , pressed ctrl O , ctrl X , clear .

when I typed
source nano~/.bash_profile
in terminal
it worked , it actually did what screenfetch is supposed to do. But when I closed terminal and opened it again, it didn't execute screenfetch command automatically. It is saved in bash_profile so it should be executed automatically. Where did I do a mistake?

Answer Source

You need to add your command in the .bashrc file.

Bash uses this file every time you launch the shell and that is were you define commands that you want to persist between sessions.

Look at this question on unix.se for a more in-depth explanation.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download