Skip to content
This repository has been archived by the owner on Sep 18, 2024. It is now read-only.

Commit

Permalink
Fix issue #31: Redesign bash prompt
Browse files Browse the repository at this point in the history
Signed-off-by: Timo Reichl <thetredev@gmail.com>
  • Loading branch information
thetredev committed Sep 8, 2023
1 parent 1bde5ed commit 1dab579
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions image/base/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,10 @@ RUN apt-docker quick-install \
curl -fsSL -o /usr/local/bin/gosu "https://github.com/tianon/gosu/releases/download/${GOSU_VERSION}/gosu-amd64" && \
chmod +x /usr/local/bin/gosu && \
gosu nobody true \
&& \
# Configure bash prompt skeleton
echo "export PS1=$(cat /etc/skel.d/bash_prompt)" >> /etc/bash.bashrc && \
echo "export PS1=$(cat /etc/skel.d/bash_prompt)" >> /etc/skel/.bashrc \
&& \
# Create SteamCMD user
groupadd -r -g "${STEAMCMD_GID}" steamcmd && \
Expand Down
1 change: 1 addition & 0 deletions image/base/etc/skel.d/bash_prompt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
'\n[\u@${STEAMCMD_SERVER_SESSION_NAME:-base} :: ${debian_chroot}]\n:: \w\n\$ '

0 comments on commit 1dab579

Please sign in to comment.