Skip to content

Commit 2645e88

Browse files
committed
chore: symlinks .zshrc on start to make it work in Codespaces
Use a post-start symlink to place the repo .zshrc into the container HOME, avoiding a persistent bind mount and improving container startup consistency.
1 parent d04b8dd commit 2645e88

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.devcontainer/devcontainer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@
88
"target": "dev_image"
99
},
1010
"mounts": [
11-
"source=${localWorkspaceFolder}/.devcontainer/config/.zshrc,target=/opt/app/.zshrc,type=bind",
1211
// container caches
1312
"source=linuxCache,target=/opt/app/.cache,type=volume",
1413
// avoid reinstalling all extensions on each launch
1514
"source=vscodeCache,target=/opt/app/.vscode-server,type=volume"
1615
],
16+
"postStartCommand": "ln -sfv \"${containerWorkspaceFolder}/.devcontainer/config/.zshrc\" \"${HOME}/.zshrc\"",
1717
"postAttachCommand": "prek install -q & uv sync -q || uv_exit=$?; prek run --all-files -q; exit $uv_exit",
1818
"remoteUser": "worker",
1919
"customizations": {

0 commit comments

Comments
 (0)