summaryrefslogtreecommitdiff
path: root/.bashrc
blob: 06c30092aade4536840afb4481c39b7c9c070d80 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# .bashrc
# Source global definitions
[ -f /etc/bashrc ] && . /etc/bashrc

# User-specific PATH
case ":$PATH:" in
  *":$HOME/.local/bin:"*|*":$HOME/bin:"*) ;;
  *) PATH="$HOME/.local/bin:$HOME/bin:$PATH" ;;
esac
export PATH

# Load modular bash configs
if [ -d "$HOME/.bashrc.d" ]; then
    for rc in "$HOME/.bashrc.d"/*.bashrc; do
        [ -f "$rc" ] && . "$rc"
    done
fi
unset rc