Skip to content

Commit b2795cd

Browse files
committed
devcontainer: rename init.sh to onCreateCommand.sh
- Rename init.sh to onCreateCommand.sh - use interactive bash shell to run script - fix quotes in script - erase history so it doesn't appear on constainer terminal when pressing up arrow Signed-off-by: Mike Szczys <[email protected]>
1 parent 8ba1ad5 commit b2795cd

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

.devcontainer/devcontainer.json

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,8 @@
22
"image": "golioth/golioth-zephyr-base:0.16.3-SDK-v0",
33
"workspaceMount": "source=${localWorkspaceFolder},target=/zephyr-training/app,type=bind",
44
"workspaceFolder": "/zephyr-training",
5-
"onCreateCommand": "chmod +x app/.devcontainer/init.sh && app/.devcontainer/init.sh",
6-
"remoteEnv": {
7-
"LC_ALL": "C"
8-
},
5+
"onCreateCommand": "bash -i /zephyr-training/app/.devcontainer/onCreateCommand.sh",
6+
"remoteEnv": { "LC_ALL": "C" },
97
"customizations": {
108
"vscode": {
119
"settings": {
@@ -22,4 +20,4 @@
2220
]
2321
}
2422
}
25-
}
23+
}
Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ west init -l app
44
west update
55
west zephyr-export
66
pip install -r deps/zephyr/scripts/requirements.txt
7-
echo \"alias ll='ls -lah'\" >> $HOME/.bashrc
7+
echo "alias ll='ls -lah'" >> $HOME/.bashrc
88
west completion bash > $HOME/west-completion.bash
9-
echo 'source $HOME/west-completion.bash' >> $HOME/.bashrc
9+
echo 'source $HOME/west-completion.bash' >> $HOME/.bashrc
10+
history -c

0 commit comments

Comments
 (0)