1 #############################################################################
5 ## Based on the TCSH package (http://tcshrc.sourceforge.net)
7 ## .tcshrc 2Sep2001, Simos Xenitellis (simos@hellug.gr)
9 ## 2003-01-13 -- Alain Penders (alain@gentoo.org)
10 ## Renamed to /etc/csh.cshrc, basic cleanup work.
12 ## 2003-01-24 -- Alain Penders (alain@gentoo.org)
13 ## Improved config file handling.
19 ## Load the environment defaults.
21 if ( -r /etc/csh.env ) then
27 ## Make sure our path includes the basic stuff for root and normal users.
29 if ($LOGNAME == "root") then
30 set -f path = ( $path /sbin )
31 set -f path = ( $path /usr/sbin )
32 set -f path = ( $path /usr/local/sbin )
34 set -f path = ( $path /bin )
35 set -f path = ( $path /usr/bin )
36 set -f path = ( $path /usr/local/bin )
37 set -f path = ( $path /opt/bin )
41 ## Load our settings -- most are for interactive shells only, but not all.
43 if ( -e /etc/profile.d/tcsh-settings ) then
44 source /etc/profile.d/tcsh-settings
49 ## Source extensions installed by ebuilds
51 if ( -d /etc/profile.d ) then
52 set _tmp=${?nonomatch}
54 foreach _s ( /etc/profile.d/*.csh )
59 if ( ! ${_tmp} ) unset nonomatch
64 # Everything after this point is interactive shells only.
65 if ( $?prompt == 0 ) goto end
69 ## Load our aliases -- for interactive shells only
71 if ( -e /etc/profile.d/tcsh-aliases ) then
72 source /etc/profile.d/tcsh-aliases
77 ## Load our key bindings -- for interactive shells only
79 if ( -e /etc/profile.d/tcsh-bindkey ) then
80 source /etc/profile.d/tcsh-bindkey
85 ## Load our command completions -- for interactive shells only
87 if ( -e /etc/profile.d/tcsh-complete ) then
88 source /etc/profile.d/tcsh-complete