Skip to content

chore: persist bash history in the dev container - #38

Merged
nozaq merged 1 commit into
mainfrom
claude/fervent-goldberg-14sa6t
Sep 13, 2026
Merged

nozaq merged 1 commit into
mainfrom
claude/fervent-goldberg-14sa6t

Conversation

@nozaq

@nozaq nozaq commented Sep 13, 2026

Copy link
Copy Markdown
Member

Applies the bash history persistence the bare-devcontainer templates now ship to this repository's dev container.

Changes

  • Mount a ${devcontainerId}-bash-history volume on /home/dev/.local/state/bash, the directory the debian base image points HISTFILE at, so the shell history survives a rebuild.
  • Move the image pin to trixie-20260913, the first release that creates that directory as dev. Without it Docker would create the mount point and it would be owned by root.

🤖 Generated with Claude Code

https://claude.ai/code/session_013U5NgFxAibDwMQQ13ZdZxh


Generated by Claude Code

The debian base image sets HISTFILE to /home/dev/.local/state/bash/history, so a
named volume mounted on that directory keeps the shell history across container
rebuilds, matching what the bare-devcontainer templates now ship.

The image pin moves to the release that creates the directory: without it the
mount point would be created by Docker and owned by root instead of dev.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013U5NgFxAibDwMQQ13ZdZxh
@nozaq
nozaq marked this pull request as ready for review September 13, 2026 02:00
@nozaq
nozaq merged commit c735281 into main Sep 13, 2026
7 checks passed
@nozaq
nozaq deleted the claude/fervent-goldberg-14sa6t branch September 13, 2026 02:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants