2 # Hamster Login Profile.
4 # This file takes the place of .profile or other initialization scripts.
7 export SHELL_DEBUG=true
8 # this variable causes the scripts that listen to it to print more information
11 ####fault--repeated code from bootstrap. isolate to shared location.
12 # GENERADIR is where the generated files yeti uses are located.
13 export GENERADIR="$HOME/.zz_auto_gen"
14 if [ ! -z "$WINDIR" -o ! -z "$windir" ]; then
15 # assume they are using windoze.
16 export GENERADIR="$TMP/zz_auto_gen"
19 # make sure our main variables are established.
20 YETIVARS="$GENERADIR/yeti_variables.sh"
21 if [ ! -f "$YETIVARS" ]; then
23 echo "The yeti scripts need to be initialized via the bootstrap process, e.g.:"
24 echo " bash $HOME/feisty_meow/scripts/core/bootstrap_shells.sh"
28 # pull in our variable set.
31 # define a default name, if one wasn't already set.
32 if [ -z "$NAME" ]; then
33 export NAME='Unset Q. Namington, Fixley Your Name III'
36 # check if this is dos/windows.
37 if [ "$OS" == "Windows_NT" ]; then
38 if [ -z "$HOME" ]; then
39 # set a default that might not be appropriate for everyone, but should
43 if [ ! -d "$HOME" ]; then mkdir $HOME; fi
44 ## export GENERADIR=$TMP/zz_auto_gen
47 if [ -z "$LIGHTWEIGHT_INIT" ]; then
48 # perform the bulk of the login.
49 source $SHELLDIR/core/unix_login.sh
51 # this is the lightweight login that just wants variables set.
52 source $SHELLDIR/core/lightweight_unix_login.sh