mirror of
https://github.com/opensiriusfox/bashrc.d.git
synced 2025-06-16 12:20:24 -07:00
Faster loading rework
- Fixed Batou Local Bits - fixed case insensitivyt bug - added oracle server bit - added the loader stub
This commit is contained in:
parent
04c6996897
commit
be1cbd69d4
4 changed files with 29 additions and 3 deletions
|
@ -30,8 +30,9 @@ echo """#!/bin/bash
|
|||
|
||||
""" > $COMPILED_SRC
|
||||
|
||||
|
||||
HOST_SPECIFIC_META_SRC="$BASHRC_D/hostname/$(hostname).meta.sh"
|
||||
__HOSTNAME=$(hostname)
|
||||
__HOSTNAME=${__HOSTNAME,,} # make it lowercase
|
||||
HOST_SPECIFIC_META_SRC="$BASHRC_D/hostname/${__HOSTNAME}.meta.sh"
|
||||
if [[ -e $HOST_SPECIFIC_META_SRC ]]; then
|
||||
echo "Executing host specific config file $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
|
||||
done
|
||||
|
||||
HOST_SPECIFIC_SRC="$BASHRC_D/hostname/$(hostname).sh"
|
||||
HOST_SPECIFIC_SRC="$BASHRC_D/hostname/${__HOSTNAME}.sh"
|
||||
if [[ -e $HOST_SPECIFIC_SRC ]]; then
|
||||
echo "Adding host specific file $HOST_SPECIFIC_SRC"
|
||||
echo "##################" >> $COMPILED_SRC
|
||||
|
|
8
2-loader
Normal file
8
2-loader
Normal 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
16
hostname/oracle-2.sh
Normal 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
|
|
@ -66,6 +66,7 @@ __LOAD_DIRS=(
|
|||
/opt/fpga
|
||||
/opt/makemkv
|
||||
/opt/icestorm
|
||||
/opt/openmhz
|
||||
/opt/gemini
|
||||
$HOME/.local/share/gem/ruby/3.0.0
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue