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

# If not running interactively, don't do anything.
[[ "$-" != *i* ]] && return
# Src system bashrc.
[[ -f /etc/bashrc ]] && source /etc/bashrc
# Src custom modules.
for module in ${HOME}/.config/bash/module/*.sh; do
source "${module}"
done
# Alias to reload.
function bashrc() {
source ~/.bashrc
}
# Export all functions.
export -f $(find_function | tr '\n' ' ')