2 # Bourne Again Shell config file
4 # Wilfredo Sanchez Jr. | tritan@mit.edu
9 # ORIGINAL SOURCES: /usr/athena/lib/init/cshrc (ATHENA REL 7.3P)
12 default_initdir=/usr/share/init
13 default_bash_initdir=${default_initdir}/bash
14 user_initdir=~/Library/init
15 user_bash_initdir=${user_initdir}/bash
17 if [ -r ${user_bash_initdir} ]; then
18 initdir=${user_initdir}
19 bash_initdir=${user_bash_initdir}
21 initdir=${default_initdir}
22 bash_initdir=${default_bash_initdir}
25 # SET UP HOST-DEPENDANT VARIABLES, ETC.
27 host=$(echo $(hostname) | tr A-Z a-z)
35 if [ -z "${uid}" ]; then uid=$(id | cut -d = -f 2 | cut -d \( -f 1); fi
37 # SET COMMAND SEARCH PATH AND MAN PATH
38 if [ -f ${bash_initdir}/path ]; then source ${bash_initdir}/path; fi
42 if [ -n "${PS1}" ]; then interactive="YES"; fi
44 if [ -z "${ENV_SET}" ]; then
45 if [ -f ${default_bash_initdir}/environment ]; then
46 #echo "Initializing environment..."
47 source ${default_bash_initdir}/environment
51 if [ -r ${default_bash_initdir}/bash.defaults ]; then
52 source ${default_bash_initdir}/bash.defaults
55 # DEFAULT LOGIN SOURCES
56 if [ -f ${bash_initdir}/rc.mine ]; then source ${bash_initdir}/rc.mine; fi
58 if [ "${interactive}" = "YES" ]; then
59 # These aren't useful for non-interactive sessions
60 if [ -f ${default_bash_initdir}/aliases ]; then
61 source ${default_bash_initdir}/aliases