Conditionally source zephyr-env.sh in .bashrc

This commit is contained in:
Idan Gazit 2020-10-09 17:49:42 -07:00
parent 63931a7068
commit db40fbad59
No known key found for this signature in database
GPG Key ID: FA1E9B15C71BD7FC
2 changed files with 9 additions and 0 deletions

6
.devcontainer/.bashrc Normal file
View File

@ -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

View File

@ -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