22 lines
361 B
Bash
22 lines
361 B
Bash
#!/bin/bash
|
|
|
|
# If not running interactively, don't do anything.
|
|
[[ "$-" != *i* ]] && return
|
|
|
|
#home="/var/home/voronind"
|
|
home="${HOME}"
|
|
module="${home}/.config/bash/module/*.sh"
|
|
|
|
# src default
|
|
if [[ -f /etc/bashrc ]]; then
|
|
source /etc/bashrc
|
|
fi
|
|
|
|
# src custom
|
|
for file in ${module}; do
|
|
source "${file}"
|
|
done
|
|
|
|
# alias to reload
|
|
alias bashrc="source ~/.bashrc"
|