This repository has been archived on 2024-03-04. You can view files and clone it, but cannot push or open issues or pull requests.
linux/.bashrc

19 lines
369 B
Bash
Raw Normal View History

2023-11-03 01:19:16 +03:00
# If not running interactively, don't do anything.
[[ "$-" != *i* ]] && return
2023-12-07 01:44:42 +03:00
# Src system bashrc.
[[ -f /etc/bashrc ]] && source /etc/bashrc
2023-12-07 01:44:42 +03:00
# Src custom modules.
for module in ${HOME}/.config/bash/module/*.sh; do
source "${module}"
done
2023-12-07 01:44:42 +03:00
# Alias to reload.
function bashrc() {
source ~/.bashrc
}
# Export all functions.
2023-12-07 04:51:23 +03:00
export -f $(find_function | tr '\n' ' ')