Customizing Your Account

To define environment variables, type:

    setenv <variable> <value>
    Example:setenv printer ps_sal125
    Example:setenv editor emacs
    Example:setenv pager more

To define shell variables, type:

    set <variable> = <value>
    Example:set term = vt100
    Example:set display = sal-sun00:0
    Example:set prompt = "Hello, Dave."

You can also put these commands at the bottom of your .login
file so they get executed automatically every time you log in. Alternatively, if your default shell is csh you can put these commands in your .cshrc file. If your default shell is tcsh and you have created a .tcshrc, you can put these commands in that file.

Some applications require some customization of your account in order to work correctly. These applications have a setup you can source which will set your path, man path, library path and other variables as appropriate. To source a setup file, type:

    source <path>/setup.csh
    Example:source /usr/usc/stats/setup.csh
    Example:source /usr/usc/tex/default/setup.csh
    Example:source /usr/spac/sparcompilers/default/setup.csh

NOTE: If you use a Bourne shell instead of a csh shell, you will want to source the setup file that ends in .sh instead of .csh.

You can also put these commands in your .login file so they get executed automatically everytime you log in. However, you will want to qualify them as follows so that they are only executed if the file actually exists:

Example:

if (-e /usr/usc/stats/setup.csh) then
source /usr/usc/stats/setup.csh
endif

if (-e /usr/usc/tex/default/setup.csh) then
source /usr/usc/tex/default/setup.csh
endif

if (-e /usr/spac/sparcompilers/default/setup.csh) then
source /usr/spac/sparcompilers/default/setup.csh
endif

You will find most setup files at the following location:

    /usr/usc/<application>/default/setup.csh
    Example:/usr/usc/centerline/default/setup.csh