Skip to content

Extend your bash PS1 with a git branch without breaking your prompt

Adding the current Git branch to Bash PS1 without breaking prompt width calculation.

Published
Updated
Reading time
3 min read