Blame | Last modification | View Log | RSS feed
# /etc/csh.login# System wide environment and startup programs, for login setupif ( ! ${?PATH} ) thenif ( $uid == 0 ) thensetenv PATH "/usr/local/sbin:/usr/sbin:/usr/local/bin:/usr/bin"elsesetenv PATH "/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin"endifelse#add sbin directories to the pathforeach p ( /usr/local/sbin /usr/sbin )switch (":${PATH}:")case "*:${p}:*":breakswdefault:if ( $uid == 0 ) thenset path = ( ${p} ${path:q} )elseset path = ( ${path:q} ${p} )endifbreakswendswendendifsetenv HOSTNAME `/usr/bin/hostname`set history=1000if ( -d /etc/profile.d ) thenset nonomatchforeach i ( /etc/profile.d/*.csh )if ( -r "$i" ) thenif ($?prompt) thensource "$i"elsesource "$i" >& /dev/nullendifendifendunset i nonomatchendif