The Complete Guide to Bash Prompt (PS1) and ANSI Color: From Escape Sequences to 256-Color and Line-Wrapping Fixes
A comprehensive guide to customizing the Bash prompt (PS1) with ANSI colors (16 and 256-color SGR): escape sequences, color formatting, debugging broken line-wrapping with '\[ \]', and building modern Git-aware prompts.