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

22 lines
359 B
Bash
Raw Normal View History

#!/bin/bash
2023-11-03 01:19:16 +03:00
# If not running interactively, don't do anything.
[[ "$-" != *i* ]] && return
#home="/var/home/voronind"
home="${HOME}"
2023-11-18 05:04:50 +03:00
module="${home}/.config/bash/module/*.sh"
# src default
if [[ -f /etc/bashrc ]]; then
2023-12-05 22:16:14 +03:00
source /etc/bashrc
fi
# src custom
for file in ${module}; do
2023-12-05 22:16:14 +03:00
source "${file}"
done
# alias to reload
alias bashrc="source ~/.bashrc"