Browse Source

Merge pull request #274 from idan/codespaces-config

Tweak devcontainer setups for GitHub Codespaces
xmkb
Pete Johanson 4 years ago committed by GitHub
parent
commit
409d180de9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      .devcontainer/.bashrc
  2. 5
      .devcontainer/devcontainer.json

4
.devcontainer/.bashrc

@ -1,6 +1,8 @@
export LS_OPTIONS='-F --color=auto' export LS_OPTIONS='-F --color=auto'
eval "`dircolors`"
alias ls='ls $LS_OPTIONS' alias ls='ls $LS_OPTIONS'
if [ "${CODESPACES}" = "true" ]; then
export WORKSPACE_DIR="$HOME/workspace/zmk"
fi
if [ -f "$WORKSPACE_DIR/zephyr/zephyr-env.sh" ]; then if [ -f "$WORKSPACE_DIR/zephyr/zephyr-env.sh" ]; then
source "$WORKSPACE_DIR/zephyr/zephyr-env.sh" source "$WORKSPACE_DIR/zephyr/zephyr-env.sh"
fi fi

5
.devcontainer/devcontainer.json

@ -3,6 +3,9 @@
"dockerFile": "Dockerfile", "dockerFile": "Dockerfile",
"extensions": ["ms-vscode.cpptools"], "extensions": ["ms-vscode.cpptools"],
"runArgs": ["--security-opt", "label=disable"], "runArgs": ["--security-opt", "label=disable"],
"containerEnv": {"WORKSPACE_DIR": "${containerWorkspaceFolder}"} "containerEnv": {"WORKSPACE_DIR": "${containerWorkspaceFolder}"},
"settings": {
"terminal.integrated.shell.linux": "/bin/bash"
},
} }

Loading…
Cancel
Save