feat(devcontainer): persist bash history
When combined with the root user volume, this commit instructs bash to save each command to the bash history after execution, thereby sharing the bash history between any containers that use the volume. Based on the advice of KemoNine. PR: #480
This commit is contained in:
parent
78acd7610e
commit
b507f9809a
1 changed files with 4 additions and 1 deletions
|
@ -2,7 +2,10 @@
|
||||||
"name": "ZMK Development",
|
"name": "ZMK Development",
|
||||||
"dockerFile": "Dockerfile",
|
"dockerFile": "Dockerfile",
|
||||||
"runArgs": ["--security-opt", "label=disable"],
|
"runArgs": ["--security-opt", "label=disable"],
|
||||||
"containerEnv": { "WORKSPACE_DIR": "${containerWorkspaceFolder}" },
|
"containerEnv": {
|
||||||
|
"WORKSPACE_DIR": "${containerWorkspaceFolder}",
|
||||||
|
"PROMPT_COMMAND": "history -a"
|
||||||
|
},
|
||||||
"mounts": [
|
"mounts": [
|
||||||
"type=volume,source=zmk-root-user,target=/root",
|
"type=volume,source=zmk-root-user,target=/root",
|
||||||
"type=volume,source=zmk-config,target=/workspaces/zmk-config"
|
"type=volume,source=zmk-config,target=/workspaces/zmk-config"
|
||||||
|
|
Loading…
Reference in a new issue