# -*-shell-script-*-
# JLdL 20May04.
#
# Set up the global environment variables.
#
# Set up the X11 display variable.
if ( ! -f /root/.hushdisplay ) then
    #
    # Check whether ssh has already defined the display.
    if ( $?DISPLAY ) then
	echo Using display $DISPLAY
    #
    # If not, let the root user choose it.
    else
	source /root/setdisplay
    endif
endif
#
# Set up variables to choose the default editor.
setenv EDITOR emacs
setenv TEXEDIT "emacs +%d %s"
#
# Set up variables pointing to the temporary areas.
setenv TMP /tmp
setenv TEMP /temp
#
# If less is available, use it as the default pager.
# _ Configure less to understand ISO characters.
if ( -x /usr/bin/less ) then
    setenv PAGER less
    setenv LESSCHARSET latin1
endif
