Skip to content

Commit 9f31d77

Browse files
committed
fix: add welcome message to .bashrc for persistent display
Configure setup script to append welcome message to .bashrc so it displays automatically on every new terminal session in Codespaces. This is more reliable than postStartCommand which doesn't always show output in the terminal.
1 parent 918d1c3 commit 9f31d77

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.devcontainer/setup.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,3 +83,12 @@ cat "$WELCOME_FILE"
8383

8484
echo "✅ Setup Complete! Welcome message saved to $WELCOME_FILE"
8585
echo ""
86+
87+
# Add welcome message to .bashrc so it shows on every new terminal
88+
if ! grep -q "Jenkins Quickstart Tutorials Welcome" ~/.bashrc; then
89+
echo "" >> ~/.bashrc
90+
echo "# Jenkins Quickstart Tutorials Welcome" >> ~/.bashrc
91+
echo "if [ -f /workspaces/quickstart-tutorials/.devcontainer/welcome.txt ]; then" >> ~/.bashrc
92+
echo " cat /workspaces/quickstart-tutorials/.devcontainer/welcome.txt" >> ~/.bashrc
93+
echo "fi" >> ~/.bashrc
94+
fi

0 commit comments

Comments
 (0)