aboutsummaryrefslogtreecommitdiffhomepage
path: root/.devcontainer
diff options
context:
space:
mode:
authorIdan Gazit <[email protected]>2020-10-09 17:49:42 -0700
committerIdan Gazit <[email protected]>2020-10-09 19:09:11 -0700
commitdb40fbad598b6f84472cb2921df89f1a46fc6b5c (patch)
treedeed33db725975c0832476c32e50c20180000f2f /.devcontainer
parent63931a706870652e649346e4052a9fb1b105ff5b (diff)
downloadzmk-db40fbad598b6f84472cb2921df89f1a46fc6b5c.tar.gz
zmk-db40fbad598b6f84472cb2921df89f1a46fc6b5c.zip
Conditionally source zephyr-env.sh in .bashrc
Diffstat (limited to '.devcontainer')
-rw-r--r--.devcontainer/.bashrc6
-rw-r--r--.devcontainer/Dockerfile3
2 files changed, 9 insertions, 0 deletions
diff --git a/.devcontainer/.bashrc b/.devcontainer/.bashrc
new file mode 100644
index 0000000000..6a6ea69111
--- /dev/null
+++ b/.devcontainer/.bashrc
@@ -0,0 +1,6 @@
+export LS_OPTIONS='-F --color=auto'
+eval "`dircolors`"
+alias ls='ls $LS_OPTIONS'
+if [ -f /workspaces/zmk/zephyr/zephyr-env.sh ]; then
+ source /workspaces/zmk/zephyr/zephyr-env.sh
+fi
diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile
index 160b148127..184aae9a5c 100644
--- a/.devcontainer/Dockerfile
+++ b/.devcontainer/Dockerfile
@@ -6,3 +6,6 @@ RUN apt-get -y update && \
ssh \
gpg && \
rm -rf /var/lib/apt/lists/*
+
+COPY .bashrc tmp
+RUN mv /tmp/.bashrc ~/.bashrc