diff --git a/rootfs/home/developer/.bash_aliases b/rootfs/home/developer/.bash_aliases index ca9e902..02e1bc4 100644 --- a/rootfs/home/developer/.bash_aliases +++ b/rootfs/home/developer/.bash_aliases @@ -3,6 +3,15 @@ # To override, bind-mount your host's ~/.bash_aliases over this file # via docker-compose.yml. +# ── Host-shared shell customizations (devbox-shell bridge) ─────────── +# If the host bind-mounts a directory at ~/.config/devbox-shell/ (the +# recommended pattern for sharing aliases/PATH/utilities between host +# and container), source the bash_aliases file from it. This survives +# --force-recreate because it's baked into the image's skel, not the +# container's writable layer. Hosts that don't use this pattern are +# unaffected — the test silently skips if the file doesn't exist. +[ -r "$HOME/.config/devbox-shell/bash_aliases" ] && . "$HOME/.config/devbox-shell/bash_aliases" + # ── History persistence and quality ────────────────────────────────── # The named volume devbox-shell-history is mounted at ~/.cache/bash # so history survives container recreation.