From 737283bcbcbd771767a82fb8abbdbd087c691808 Mon Sep 17 00:00:00 2001 From: Idan Gazit Date: Mon, 12 Oct 2020 14:23:34 -0700 Subject: Behave properly in GH Codespaces --- .devcontainer/.bashrc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to '.devcontainer/.bashrc') diff --git a/.devcontainer/.bashrc b/.devcontainer/.bashrc index 855ea75..9fdb8f6 100644 --- a/.devcontainer/.bashrc +++ b/.devcontainer/.bashrc @@ -1,6 +1,8 @@ export LS_OPTIONS='-F --color=auto' -eval "`dircolors`" 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 source "$WORKSPACE_DIR/zephyr/zephyr-env.sh" fi -- cgit v1.2.3