Fixed issues with setting up colored Bash prompt supporting displaying Git repository information.
All checks were successful
Build Docker Image / build (push) Successful in 38s

This commit is contained in:
2025-12-21 13:50:07 +00:00
parent b908f3f1f0
commit e6b4fdec1a
5 changed files with 65 additions and 53 deletions

7
enable-git-bash-prompt Normal file
View File

@@ -0,0 +1,7 @@
# Include Git prompt helpers if available
if [ -f /usr/lib/git-core/git-sh-prompt ]; then
source /usr/lib/git-core/git-sh-prompt
# Then PS1 can include __git_ps1 which is optimized and shows branch + state:
PS1='\[\e[32m\]AzureCLI (\[\e[35m\]${ACCOUNT_NAME}\[\e[0m\])\n\[\e[0m\]\[\e[34m\]\w\[\e[0m\]\[\e[33m\]$(__git_ps1 " (%s)")\[\e[0m\]\$ '
fi