5 # Fred Hamster's Feisty Meow Concerns Ltd. Startup Profile.
7 # This file is useful within .profile or other initialization scripts.
9 # Author: Chris Koeritz
13 export SHELL_DEBUG=true
14 # this variable causes the scripts that listen to it to print more information
19 if [ -z "$FEISTY_MEOW_GENERATED" ]; then
20 # FEISTY_MEOW_GENERATED is where the generated files yeti uses are located.
21 # this is our single entry point we can use without knowing any variables
22 # yet in the initialization process.
23 export FEISTY_MEOW_GENERATED="$HOME/.zz_auto_gen"
24 #hmmm: the above is kind of a constant. that's not so great.
26 # make sure our main variables are established.
27 GENERATED_FEISTY_MEOW_VARIABLES="$FEISTY_MEOW_GENERATED/fmc_variables.sh"
28 if [ ! -f "$GENERATED_FEISTY_MEOW_VARIABLES" ]; then
30 echo "The yeti scripts need to be initialized via the bootstrap process, e.g.:"
31 echo " bash $HOME/feisty_meow/scripts/core/bootstrap_shells.sh"
37 # pull in our generated variables that are the minimal set we need to find
38 # the rest of our resources.
39 source "$GENERATED_FEISTY_MEOW_VARIABLES"
41 # Set up the temporary directory.
42 source $FEISTY_MEOW_SCRIPTS/core/create_tempdir.sh
46 # load the larger body of standard feisty meow variables into the environment.
47 source $FEISTY_MEOW_SCRIPTS/core/variables.sh
51 # check hash table before searching path.
53 # don't check path for sourced files.
58 if [ -z "$LIGHTWEIGHT_INIT" ]; then
59 # perform the bulkier parts of the login and initialization.
61 if [ ! -z "$SHELL_DEBUG" ]; then echo heavyweight login begins...; fi
63 # set up the aliases for the shell, but only if they are not already set.
64 alias regenerated &>/dev/null # see if a crucial alias exists.
66 if [ ! -z "$SHELL_DEBUG" ]; then
67 echo the aliases were missing, now they are added...
69 source "$FEISTY_MEOW_GENERATED/fmc_core_and_custom_aliases.sh"
72 # allow connections to our x server from the local host.
73 if [ ! -z "$DISPLAY" ]; then
74 if [ ! -z "$(echo "$OS_TYPE" | grep -i darwin)" ]; then
75 if [ ! -z "$SHELL_DEBUG" ]; then echo Enabling localhost X connections...; fi
76 xhost + localhost >/dev/null 2>&1
80 # a minor tickle of the title of the terminal, in case there is one.
81 bash $FEISTY_MEOW_SCRIPTS/tty/label_terminal_with_infos.sh
83 if [ ! -z "$SHELL_DEBUG" ]; then echo heavyweight login ends....; fi