4 # Unix Start up information and personal environment for bash.
7 if [ ! -z "$SHELL_DEBUG" ]; then echo unix login begins...; fi
9 GENERADIR=$(echo $GENERADIR | sed -e 's/\\/\//g')
10 YETI_SCRIPTS="$(echo $YETI_SCRIPTS | sed -e 's/\\/\//g')"
11 SHELLDIR="$YETI_SCRIPTS"
13 # Set up all of the environment's system variables. This is the first step
14 # in the majestic plan we have for this shell's initialization.
15 source $YETI_SCRIPTS/core/variables.sh
17 # Also set up the temporary directory...
18 source $YETI_SCRIPTS/core/create_tempdir.sh
20 # ulimit and umask. umask sets a permission mask for all file
21 # creations. The mask shown here disallows writing by the "group" and
22 # "others" categories of users. ulimit sets the user limits. the core
23 # file size is set to zero.
27 # The second part of this sweeping two-part inauguration process is to set
28 # up the aliases for the shell, but only if they are not already set. The
29 # only alias we know of that's specific to our set is used.
30 alias lsd >/dev/null 2>/dev/null # see if the 'x' alias exists.
32 if [ ! -z "$SHELL_DEBUG" ]; then
33 echo the aliases were missing, now they are added...
35 source $GENERADIR/aliases.sh
38 # allow connections to our x server from the local host.
39 if [ ! -z "$DISPLAY" ]; then
40 if [ ! -z "$(echo "$OS_TYPE" | grep -i darwin)" ]; then
41 if [ ! -z "$SHELL_DEBUG" ]; then echo Enabling localhost X connections...; fi
42 xhost + localhost >/dev/null 2>&1
46 # a minor tickle of the title of the terminal, in case there is one.
47 bash $YETI_SCRIPTS/tty/label_terminal_with_infos.sh
49 if [ ! -z "$SHELL_DEBUG" ]; then echo unix login ends....; fi