.cshrc
and .login
and two additional supplementary files, named .localenv
,
and .localalias
are in the /opt/proto
directory on Copland, and Strauss. The content of these files reflects
current environments of the Solaris
operating system, the use of Sun Rays, Linux and microcomputer-based
X server software.
The overall goal is to provide a common base environment
that supports the many ways that you can access the system .
These files form a model that you can modify for use
on the composers as well as other UNIX systems.
The discussion below should
help you understand the files' structure
and explain what and how you can modify to customize it. If you have
questions about what can be changed, please call the Information
Technologies Help Center
at
831-6000 or
send mail to consult@udel.edu
.
We encourage you to use these files as your base set of "dotfiles".
After a brief description of these files, we give detailed instructions on how to copy and modify them for your use.
.localalias
.
Then type the aliases that are just for interactive shells into a
second file named .alias
.
It is good practice to keep the commands in .alias
general enough to work across all UNIX systems (e.g., the composers,
departmental systems, off- campus systems). /opt/proto
. This
is the file for interactive
aliases (aliases
which are primarily typing aids). If
you create this file, it will be used automatically. The prototype files are stored in /opt/proto.
You can perform all of the instructions below by typing the following UNIX command:
~consult/proto/setupAlternatively, follow these instructions:
cdIf you already have files named .localalias and .localenv, then type
mv .cshrc .cshrc-backup
mv .login .login-backup
mv .localalias .localalias-backup
mv .localenv .localenv-backup
There is no need to copy the /opt/proto/localenv file since it is the .localenv file that you modify.
cp /opt/proto/.cshrc .cshrc
cp /opt/proto/.login .login
cp /opt/proto/.localalias .localalias
cp /opt/proto/.localenv .localenv
Note the "." in ".localenv".In the rest of these instructions, you are told to make changes in specific sections of the "dotfiles". These sections are always marked within the files by the lines:
### Begin -
and
### End -
Do not make changes to any other places in the files.
For most software, you do not need to add anything, since the necessary environment and path values have already been set in the system default /opt/proto/localenv. Only add things that extend the system defaults. Don't duplicate the entries in the system default file.
The system defaults file /opt/proto/localenv is read ("sourced") first. If you have a .localenv file, it is read afterwards.
To make changes to the PATH environment variable, use the NEWPATH variable instead of the PATH variable. Separate your addition from the existing path values with a colon (:).
setenv NEWPATH ${NEWPATH}:your-path-entryFor example, to add the directory ~foo/bin to the end of your path, type
setenv NEWPATH ${NEWPATH}:~foo/binDo not include a command having the form "setenv PATH ..." to this file. You must use NEWPATH instead.
To add to the MANPATH, use the form:
setenv MANPATH ${MANPATH}:your-manpath-entryFor example, to add the man page directory ~foo/man to the end of your path, type
setenv MANPATH ${MANPATH}:~foo/manNote that if you have a directory named ~/bin, it is automatically added to the search path. And if you have a directory named ~/man, it is automatically added to the man page search path.
If you do not need to make additions to the .localenv file, remove it. Type
rm .localenv
alias tnsprint 'qpr -q tnsps -D'You can split these commands between the .localalias and .alias file as you wish, as explained above. It is more efficient to put aliases used in interactive sessions into the .alias file, and to put all other aliases into the .localalias file.
# Usage: tnsprint filename
# will print the contents of "filename" on the Townsend Hall
# PostScript laser printer.
If you are not adding anything to the .localalias file, remove it. Type
rm .localalias
set prompt = '[\!]% 'in the section of the .cshrc file that is marked
### Begin - Commands for interactive shells
This file has two sections for making additions: one for commands for interactive shells and one for all shells. If you are uncertain whether a command should be placed in one section or the other, contact the IT Help Center (e-mail: consult@udel.edu, 831-6000).
Last modified: June 28, 2005
This page maintained by Dean
Nairn
Copyright © 2005 University of Delaware