if ( $?prompt ) then

# The following lines set path and makes alias 'repath' to rehash path
# (useful when installing new binaries).
#alias repath 'set path = ( ${HOME}/bin/${HOSTTYPE} ${HOME}/bin /usr/local/bin /bin /usr/bin /usr/local/games /usr/bin/X11 /usr/games )'
#repath

  set autoexpand
  set autolist
# To unset autologout
  # unset autologout
# To set autologout to other time (in minutes):
  # if ( $?autologout ) then
  #   set autologout = 30
  # endif
# To set autologout to 60 and autolock to 15:
  # set autologout = 60 15
  set cdpath = ( ~ )
  set correct = cmd
  set fignore = ( \~ .o )
  # set matchbeep = never
  # set nobeep
  set printexitvalue
  set pushdtohome
  set recognize_only_executables

  # mesg y

  setenv EDITOR emacs
  setenv PAGER less

# To make xterm make your hostname and your working directory its window
# name, uncomment the following lines:
  # if ( "$TERM" == "xterm" ) then
  #   alias cwdcmd 'echo -n "]2;${HOST}:$cwd]1;${HOST}"'
  #   cwdcmd
  # endif

# Load aliases from ~/.alias
  if ( -e ~/.alias )	source ~/.alias

# Execute fortune cookie
  if ( "$TERM" == "xterm" ) echo ""
  fortune
  echo ""

# Execute calendar
  if ( -e ./calendar ) then
    pushd ~
    calendar
    popd
  endif
  echo ""

endif
