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
18 lines
500 B
JSON
18 lines
500 B
JSON
{
|
|
"name": "ZMK Development",
|
|
"dockerFile": "Dockerfile",
|
|
"runArgs": ["--security-opt", "label=disable"],
|
|
"containerEnv": {
|
|
"WORKSPACE_DIR": "${containerWorkspaceFolder}",
|
|
"PROMPT_COMMAND": "history -a"
|
|
},
|
|
"mounts": [
|
|
"type=volume,source=zmk-root-user,target=/root",
|
|
"type=volume,source=zmk-config,target=/workspaces/zmk-config"
|
|
],
|
|
"extensions": ["ms-vscode.cpptools"],
|
|
"settings": {
|
|
"terminal.integrated.shell.linux": "/bin/bash"
|
|
},
|
|
"forwardPorts": [3000]
|
|
}
|