2024-03-04 00:34:39 +03:00
|
|
|
# If not running interactively, don't do anything.
|
|
|
|
[[ "$-" != *i* ]] && return
|
|
|
|
|
|
|
|
# Src system bashrc.
|
|
|
|
[[ -f /etc/bashrc ]] && source /etc/bashrc
|
|
|
|
|
|
|
|
# Src custom modules.
|
2024-03-08 22:40:38 +03:00
|
|
|
for module in ${BASH_PATH}/module/*.sh; do
|
2024-03-04 00:34:39 +03:00
|
|
|
source "${module}"
|
|
|
|
done
|
|
|
|
|
|
|
|
# Alias to reload.
|
|
|
|
function bashrc() {
|
|
|
|
source ${BASH_PATH}/Bashrc.sh
|
|
|
|
}
|
|
|
|
|
|
|
|
# Export all functions.
|
|
|
|
export -f $(find_function | tr '\n' ' ')
|