Skip to content

Commit 6212d49

Browse files
committed
feat(base): autoload bash env for other shells
1 parent 72f19c9 commit 6212d49

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

base/Dockerfile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,13 @@ COPY --chown=gitpod:gitpod default.gitconfig /home/gitpod/.gitconfig
5959
# configure git-lfs
6060
RUN git lfs install --system --skip-repo
6161

62+
# Autoload .bashrc.d for other SHELLs (fish and zsh)
63+
RUN mkdir -m 755 -p /usr/share/fish/vendor_conf.d /etc/zsh \
64+
&& printf 'source %s\n' /etc/zsh/autoload_bash.zsh >> /etc/zsh/zshrc
65+
COPY fish/autoload_bash.fish /usr/share/fish/vendor_conf.d
66+
COPY zsh/autoload_bash.zsh /etc/zsh
67+
RUN chmod 755 /etc/zsh/autoload_bash.zsh && touch $HOME/.zshrc
68+
6269
### Gitpod user (2) ###
6370
USER gitpod
6471
# use sudo so that user does not get sudo usage info on (the first) login

0 commit comments

Comments
 (0)