39 lines
1.4 KiB
Bash
39 lines
1.4 KiB
Bash
# ~/.bashrc — Kenji's shell configuration loader
|
|
# Managed via dotfiles repo: http://172.27.0.35:3000/kenjim/dotfiles
|
|
#
|
|
# Structure:
|
|
# ~/.bashrc — this file: loader only (SHARED, tracked in dotfiles)
|
|
# ~/.bashrc.d/*.sh — modular configs by topic (SHARED, tracked in dotfiles)
|
|
# ~/.bashrc.local — machine secrets + profile overrides (NOT tracked)
|
|
# ~/.aliases — legacy aliases file (optional, NOT tracked)
|
|
#
|
|
# Machines:
|
|
# kenjim-mbp work Mac (MACHINE_PROFILE=work)
|
|
# kenjim-mbm personal Mac (MACHINE_PROFILE=personal)
|
|
# etqc-*, etbg-*, engtech-dev-* work servers (auto-detected by hostname)
|
|
# zet local Gitea server
|
|
# =============================================================================
|
|
|
|
# Source system-wide files first
|
|
[ -f /etc/profile ] && source /etc/profile
|
|
[ -f /etc/bashrc ] && source /etc/bashrc
|
|
|
|
# Load all modular configs (sorted: 00_ before 10_ etc.)
|
|
if [ -d ~/.bashrc.d ]; then
|
|
for _f in ~/.bashrc.d/*.sh; do
|
|
[ -r "$_f" ] && source "$_f"
|
|
done
|
|
unset _f
|
|
fi
|
|
|
|
# Machine-local overrides: MACHINE_PROFILE, CLOUD_ROOT, secrets
|
|
# This file is written by setup_enterprise_ai_bash.sh — never committed
|
|
[ -f ~/.bashrc.local ] && source ~/.bashrc.local
|
|
|
|
# Legacy aliases file (kept for compatibility)
|
|
[ -f ~/.aliases ] && source ~/.aliases
|
|
|
|
# OpenClaw Completion
|
|
#source "/Users/kenjim/.openclaw/completions/openclaw.bash"
|
|
#export OPENCLAW_MODEL=kimi-k2.5:cloud
|