Shell setup files like .login
do at least the following:
search path (8.7
terminal type (5.3
make various terminal settings (5.9
environment variables (6.1
that might be needed by programs or scripts
that you typically run.
Run one or more commands that you want to run whenever you log in.
For example, if your system login
program doesn't show the
message of the day, your setup file can.
Many people also like to print an amusing or instructive
You might want to run
for information about the system.
In the C shell, the .cshrc
file is used to establish settings that
will apply to every instance of the C shell, not just the
login shell (51.9
For example, you typically want
to be available in every interactive shell you run.
Even novices can write simple .profile
files. The real trick is to make these setup
scripts really work for you. Here are some of the things you might
want to try:
Creating a custom prompt (article
Coordinating custom setup files on different machines (article
Making different terminal settings depending on which terminal
you're using (article
Seeing the message of the day only when it changes (article
Doing all of the above
without making your login take forever (article