Skip to content

Commit

Permalink
Merge pull request #22 from cgruver/main
Browse files Browse the repository at this point in the history
Add support to modify env with ${PROJECT_SOURCE}/workspace.rc on workspace startup
  • Loading branch information
etsauer authored Jul 31, 2024
2 parents 6b60bdd + 98b7e02 commit 3388b66
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion modules/developer-base/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,13 @@ echo "${USER}:${START_ID}:2147483646" > /etc/subgid
# Setup $PS1 for a consistent and reasonable prompt
if [ -w "${HOME}" ] && [ ! -f "${HOME}"/.bashrc ]; then
echo "PS1='[\u@\h \W]\$ '" > "${HOME}"/.bashrc
(echo "if [ -f ${PROJECT_SOURCE}/workspace.rc ]"; echo "then"; echo " . ${PROJECT_SOURCE}/workspace.rc"; echo "fi") > ${HOME}/.bashrc
fi

if [ ! -f ${HOME}/.zshrc ]
if [ -w "${HOME}" ] && [ ! -f ${HOME}/.zshrc ]
then
(echo "HISTFILE=${HOME}/.zsh_history"; echo "HISTSIZE=1000"; echo "SAVEHIST=1000") > ${HOME}/.zshrc
(echo "if [ -f ${PROJECT_SOURCE}/workspace.rc ]"; echo "then"; echo " . ${PROJECT_SOURCE}/workspace.rc"; echo "fi") >> ${HOME}/.zshrc
fi

podman login -u $(oc whoami) -p $(oc whoami -t) image-registry.openshift-image-registry.svc:5000
Expand Down

0 comments on commit 3388b66

Please sign in to comment.