Faster loading rework

- Fixed Batou Local Bits
- fixed case insensitivyt bug
- added oracle server bit
- added the loader stub
This commit is contained in:
Luke 2023-06-03 18:33:55 -07:00
parent 04c6996897
commit be1cbd69d4
4 changed files with 29 additions and 3 deletions

View file

@ -30,8 +30,9 @@ echo """#!/bin/bash
""" > $COMPILED_SRC """ > $COMPILED_SRC
__HOSTNAME=$(hostname)
HOST_SPECIFIC_META_SRC="$BASHRC_D/hostname/$(hostname).meta.sh" __HOSTNAME=${__HOSTNAME,,} # make it lowercase
HOST_SPECIFIC_META_SRC="$BASHRC_D/hostname/${__HOSTNAME}.meta.sh"
if [[ -e $HOST_SPECIFIC_META_SRC ]]; then if [[ -e $HOST_SPECIFIC_META_SRC ]]; then
echo "Executing host specific config file $HOST_SPECIFIC_META_SRC" echo "Executing host specific config file $HOST_SPECIFIC_META_SRC"
source "$HOST_SPECIFIC_META_SRC" source "$HOST_SPECIFIC_META_SRC"
@ -51,7 +52,7 @@ for F in $(find $BASHRC_D -maxdepth 1 -iname "*.sh"); do
echo "" >> $COMPILED_SRC echo "" >> $COMPILED_SRC
done done
HOST_SPECIFIC_SRC="$BASHRC_D/hostname/$(hostname).sh" HOST_SPECIFIC_SRC="$BASHRC_D/hostname/${__HOSTNAME}.sh"
if [[ -e $HOST_SPECIFIC_SRC ]]; then if [[ -e $HOST_SPECIFIC_SRC ]]; then
echo "Adding host specific file $HOST_SPECIFIC_SRC" echo "Adding host specific file $HOST_SPECIFIC_SRC"
echo "##################" >> $COMPILED_SRC echo "##################" >> $COMPILED_SRC

8
2-loader Normal file
View file

@ -0,0 +1,8 @@
# These lines are to be appended to the default Ubuntu bashrc script
# the only line I add to modify this file
if [[ -e ${HOME}/.bashrc.d/1-compiled ]]; then
source ${HOME}/.bashrc.d/1-compiled
fi

16
hostname/oracle-2.sh Normal file
View file

@ -0,0 +1,16 @@
#!/bin/bash
COLOR_RST='\[\e[39m\e[49m\]'
ULINE='\[\e[4m\]'
ULINE_RST='\[\e[24m\]'
COLOR_NORM='\[\e[1;36m\e[47m\]' # Oracle Blue on White
alt_hostname="${ULINE}${COLOR_NORM}\h${COLOR_RST}${ULINE_RST}"
export PS1="\[\e[01;32m\]\u\[\e[00m\]@\[\e[01;32m\]${alt_hostname}"
export PS1+="\[\e[01;34m\] \w \\$\[\e[00m\] "
unset $alt_hostname $COLOR_NORM $ULINE $ULINE_RST $COLOR_RST

View file

@ -66,6 +66,7 @@ __LOAD_DIRS=(
/opt/fpga /opt/fpga
/opt/makemkv /opt/makemkv
/opt/icestorm /opt/icestorm
/opt/openmhz
/opt/gemini /opt/gemini
$HOME/.local/share/gem/ruby/3.0.0 $HOME/.local/share/gem/ruby/3.0.0
) )