Browse Source

Conditionally source zephyr-env.sh in .bashrc

xmkb
Idan Gazit 4 years ago
parent
commit
db40fbad59
No known key found for this signature in database
GPG Key ID: FA1E9B15C71BD7FC
  1. 6
      .devcontainer/.bashrc
  2. 3
      .devcontainer/Dockerfile

6
.devcontainer/.bashrc

@ -0,0 +1,6 @@ @@ -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

3
.devcontainer/Dockerfile

@ -6,3 +6,6 @@ RUN apt-get -y update && \ @@ -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

Loading…
Cancel
Save