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 # FEISTY_MEOW_GENERATED is where the generated files yeti uses are located.
20 # this is our single entry point we can use without knowing any variables
21 # yet in the initialization process.
22 export FEISTY_MEOW_GENERATED="$HOME/.zz_auto_gen"
24 # make sure our main variables are established.
25 GENERATED_FEISTY_MEOW_VARIABLES="$FEISTY_MEOW_GENERATED/fmc_variables.sh"
26 if [ ! -f "$GENERATED_FEISTY_MEOW_VARIABLES" ]; then
28 echo "The yeti scripts need to be initialized via the bootstrap process, e.g.:"
29 echo " bash $HOME/feisty_meow/scripts/core/bootstrap_shells.sh"
35 # pull in our generated variables that are the minimal set we need to find
36 # the rest of our resources.
37 source "$GENERATED_FEISTY_MEOW_VARIABLES"
41 # load all the standard feisty meow variables into the environment.
42 source $FEISTY_MEOW_SCRIPTS/core/variables.sh
44 # Set up the temporary directory.
45 source $FEISTY_MEOW_SCRIPTS/core/create_tempdir.sh
49 # check if this is dos/windows.
50 if [ "$OS" == "Windows_NT" ]; then
51 if [ -z "$HOME" ]; then
52 # set a default that might not be appropriate for everyone, but should
56 if [ ! -d "$HOME" ]; then mkdir $HOME; fi
61 if [ -z "$LIGHTWEIGHT_INIT" ]; then
62 # perform the bulkier parts of the login and initialization.
64 if [ ! -z "$SHELL_DEBUG" ]; then echo heavyweight login begins...; fi
66 # set up the aliases for the shell, but only if they are not already set.
67 alias regenerated &>/dev/null # see if a crucial alias exists.
69 if [ ! -z "$SHELL_DEBUG" ]; then
70 echo the aliases were missing, now they are added...
72 source "$FEISTY_MEOW_GENERATED/fmc_core_and_custom_aliases.sh"
75 # allow connections to our x server from the local host.
76 if [ ! -z "$DISPLAY" ]; then
77 if [ ! -z "$(echo "$OS_TYPE" | grep -i darwin)" ]; then
78 if [ ! -z "$SHELL_DEBUG" ]; then echo Enabling localhost X connections...; fi
79 xhost + localhost >/dev/null 2>&1
83 # a minor tickle of the title of the terminal, in case there is one.
84 bash $FEISTY_MEOW_SCRIPTS/tty/label_terminal_with_infos.sh
86 if [ ! -z "$SHELL_DEBUG" ]; then echo heavyweight login ends....; fi