Skip to content

Commit 5dcf990

Browse files
committed
postCreateCommand
1 parent 9bdcdd8 commit 5dcf990

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.devcontainer/devcontainer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
// "forwardPorts": [],
1818

1919
// Uncomment the next line to run commands after the container is created.
20-
"postCreateCommand": "source setup.sh; echo 'source /workspaces/code/activate.sh' >> /root/.bashrc",
20+
"postCreateCommand": "./.devcontainer/postCreateCommand.sh",
2121

2222
// Configure tool-specific properties.
2323
"customizations": {

.devcontainer/postCreateCommand.sh

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#/bin/bash
2+
3+
source setup.sh
4+
echo 'export GIT_HTTPS=1' >> /root/.bashrc
5+
echo 'source /workspaces/code/activate.sh' >> /root/.bashrc

0 commit comments

Comments
 (0)