Here is a slightly simplified version of how I set my environment variables. This all lives in my $HOME/.env file (feel free to poke around ~gjb/dots, where many of my environment configuration files live, and ~gjb/emacs, where my emacs configuration lives. I'm using "sh" (bourne shell) syntax below (see ~gjb/.cshrc for an example of [t]csh-style syntax). You can also look at the files in /uns/share/lib/dotfiles -- they are the old uns-suggested dot files maintained in years past by Paul Franklin. They may be somewhat outdated, but could provide a useful starting place (though I highly recommend against using tcsh). Of course, use this at your own risk, and, as always, understanding and tweaking this for your personal needs is a Good Thing. # start environment settings useful for /uns UNAMEDIR=`/uns/share/bin/uname-dir` export UNAMEDIR PATH=$HOME/bin/share:$HOME/bin/$UNAMEDIR:/uns/egcs/bin:/uns/gnu/bin:\ /uns/bin:/uns/share/bin:/usr/local/bin:\ $PATH:\ /usr/afsws/bin:/usr/athena/bin:$HOME/bin/share/project-scripts:. export PATH # above lets you have ~/bin/ for personal platform-specific # links and binaries LD_LIBRARY_PATH=/lib:/usr/lib:/usr/X11R6/lib:$HOME/lib/$UNAMEDIR:\ /uns/egcs/lib:/uns/lib:\ $LD_LIBRARY_PATH:\ /usr/local/lib export LD_LIBRARY_PATH MANPATH=$HOME/man:/usr/local/trial/man:/uns/gnu/man:/uns/share/man:\ /usr/man:/usr/local/lab/man:/usr/local/man:/usr/X11R6/man:/usr/local/mh/man:\ /usr/lib/perl5/man:/usr/local/dist-man export MANPATH SHELLINFOPATH=$HOME/info:/usr/info:/usr/local/info:/uns/share/info export SHELLINFOPATH XLOCAL=/uns/lib/X11; export XLOCAL XLOCALSHARE=/uns/share/lib/X11; export XLOCALSHARE XUSERFILESEARCHPATH=./%N%C:./%N:$HOME/.app-defaults/%N%C:$HOME/.app-defaults/%N:\ $XLOCAL/app-defaults/%T/%N%C:$XLOCAL/app-defaults/%T/%N:\ $XLOCALSHARE/app-defaults/%T/%N%C:$XLOCALSHARE/app-defaults/%T/%N; export XUSERFILESEARCHPATH PERLLIB=$HOME/perl/site-lib export PERLLIB LOCATE_PATH=/var/lib/locatedb:$HOME/private/locatedb:/uns/share/locatedb:/uns/locatedb export LOCATE_PATH # end environment settings useful for /uns For emacs, consider adding: (load "/uns/share/emacs/site-lisp/config-and-add-path.el") to the beginning of your $HOME/.emacs file. This updates your load-path and sets up a bunch of macros to ease configuring across the various versions of emacs installed within the department. Also consider adding: (load "package-autoloads") ;; autoload functions that are so marked and, if you want more autoloaded functions, also do: (load "package-autoloads-more") ;; autoload other non-marked functions Greg J. Badros September 29, 1998