source: trunk/debathena/debathena/dotfiles/cshrc @ 24096

Revision 24096, 4.5 KB checked in by broder, 15 years ago (diff)
In dotfiles: * Stop defining add and renew in the Athena dotfiles - they should be getting defined in the system dotfiles anyway. (Trac: #393)
  • Property svn:executable set to *
Line 
1# Global cshrc file
2#
3# $Id: cshrc,v 1.12 2007-08-22 18:12:33 ghudson Exp $
4
5# This file is sourced by default user file ~/.cshrc
6
7
8set initdir=/usr/lib/init
9
10# *******************   ENVIRONMENT SETUP   *******************
11
12# Compatibility with older versions of Athena tcsh
13set autolist=""
14if ($?tcsh) then
15  bindkey "^W" backward-delete-word
16  bindkey "^Z" complete-word
17  bindkey " " magic-space
18
19endif
20
21# Set host type and hostname variables.
22if (! $?ATHENA_HOSTTYPE) setenv ATHENA_HOSTTYPE "`/bin/machtype`"
23if (! $?HOST) setenv HOST "`hostname`"
24setenv HOSTTYPE "$ATHENA_HOSTTYPE"
25set hosttype=$HOSTTYPE
26set host=$HOST
27
28# Set up standard system/user environment configuration (including setup of
29# environment variables, attachment of lockers, and additions to search path)
30
31if (! $?ENV_SET) then
32
33  setenv ENV_SET                                # Avoid unnecessary repeat
34
35  if (-r ~/.generation) then
36    setenv ATHENA_DOTFILE_GENERATION `cat ~/.generation`
37  else
38    setenv ATHENA_DOTFILE_GENERATION 0
39  endif
40
41  limit coredumpsize 0                  # Don't allow coredumps
42  setenv MORE -s                        # Default "more" behavior
43                                        # we are now down to -s
44                                        # because -d is wrong.
45  setenv EDITOR emacs                   # Set default editor
46  setenv MM_CHARSET iso-8859-1
47
48  setenv EMAIL "$USER@mit.edu"          # Set default email address
49
50  # Set double-sided printing for sufficiently recent users.
51  if ( $ATHENA_DOTFILE_GENERATION >= 1 ) then
52    setenv LPROPT -Zduplex
53  endif
54
55  setenv ATHENA_SYS `/bin/machtype -S`
56  if ( $ATHENA_SYS == "" ) then
57    setenv ATHENA_SYS @sys
58  endif
59  setenv ATHENA_SYS_COMPAT `/bin/machtype -C`
60
61  set bindir=arch/${ATHENA_SYS}/bin
62
63  if ( ! $?PRINTER && -e /var/run/athena-clusterinfo.csh ) then
64    setenv PRINTER `awk '/LPR/ { print $3 }' /var/run/athena-clusterinfo.csh`
65    if ( $PRINTER == "" ) unsetenv PRINTER
66  endif
67
68  # Reset the "home" and HOME variables to correspond to the actual
69  # location of the user's home directory.  This will avoid having
70  # long pathnames being printed when /mit/<user> is a symlink to a
71  # path within AFS.
72
73  set x=`(cd && /bin/pwd)`
74  if ("$x" != "") then
75    set home=$x
76    if ("$x" == "`/bin/pwd`") then
77      set cwd=$x
78    endif
79  endif
80  unset x
81
82  # NOTE:
83  # The use of the "extend", "sextend", and "textend" aliases in
84  # ~/.environment is no longer supported.  Consult the Athena
85  # documentation on Dotfiles for supported dotfile operations
86
87  # Run user environment customizations identified in your
88  # ~/.environment file.  This is the place to include your own
89  # environment variables, attach commands, and other system wide
90  # setup commands.  You can also cancel default behaviors listed
91  # above with "unsetenv" or "setenv".  ~/.environment is not sourced
92  # if NOCALLS is set (i.e., if you selected the xlogin "Ignore your
93  # customizations" option when you logged in).
94
95  if ((! $?NOCALLS) && (-r ~/.environment)) source ~/.environment
96
97  # NOTE:
98  # .path files are no longer supported, consult Athena documentation
99  # for the correct way to specify your PATH
100 
101  # Standard Athena path additions.
102  set path=(`/usr/bin/athdir $HOME` $path .)
103
104endif
105
106# Set appropriate bin directory variable for this platform
107# (e.g., vaxbin for VAXstations, decmipsbin for pMAXen, etc.;  this will
108# be included in actual searchpath as ~/$bindir -- e.g., ~/vaxbin):
109set bindir=arch/${ATHENA_SYS}/bin
110
111# *******************  C SHELL SETUP   *******************
112
113# Set up standard C shell initializations
114
115set noclobber                   # Don't overwrite files with redirection
116
117if ($?prompt) then              # For interactive shells only (i.e., NOT rsh):
118  set interactive               #   Provide shell variable for compatability
119endif
120
121# Set up standard C shell aliases
122
123if ($?XSESSION) then
124  alias logout  'exit && gnome-session-save --kill --silent'    # logout for X
125endif
126
127#   aliases dealing with subjects
128alias setup_X '( setenv SUBJECT \!:1 ; ( xterm -title \!* & ) )'
129alias setup_tty '( setenv SUBJECT \!* ; $SHELL )'
130if ($?XSESSION) then
131  alias setup setup_X
132else
133  alias setup setup_tty
134endif
135alias remove 'setenv SUBJECT \!* ; source $initdir/env_remove ; unsetenv SUBJECT'
136
137# If this is a subject window, run the env_setup script
138if (($?SUBJECT) && (-r $initdir/env_setup)) source $initdir/env_setup
139
140
141# All of the C shell initializing commands above can be overridden by
142# using "unset" or "unalias" commands (or by changing things using
143# "set" or "alias" again) in your ~/.cshrc.mine file, which is sourced
144# here.  ~/.cshrc.mine is not sourced if the xlogin "Ignore your
145# customizations" option was selected to begin the session.
146
147if ((! $?NOCALLS) && (-r ~/.cshrc.mine)) source ~/.cshrc.mine
Note: See TracBrowser for help on using the repository browser.