2024-12-20 14:15:35 -05:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
|
|
# If we are running in a toolbox container that uses an alt home dir, then we
|
|
|
|
|
# won't be automatically loading the global user bashrc, which is annoying becasue
|
|
|
|
|
# I worked hard to make that bashrc very useful to me. So the below conditional
|
|
|
|
|
# checks whether the user bashrc exists (because we can't load it if it isn't there)
|
|
|
|
|
# and that the current home dir does not match the user home dir (because if it does
|
|
|
|
|
# then we will have already loaded the bashrc when the shell spawned and we'll get
|
|
|
|
|
# stuck in a loop)
|
|
|
|
|
|
|
|
|
|
if [ -f /var/home/"${USER}"/.bashrc ] && [ "${HOME}" != "/var/home/${USER}" ]; then
|
2025-01-06 16:35:43 -05:00
|
|
|
source /var/home/"${USER}"/.bashrc;
|
2024-12-20 14:15:35 -05:00
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
if [ -f "${HOME}"/.bashrc ]; then
|
|
|
|
|
source "${HOME}/.bashrc";
|
|
|
|
|
fi
|