FG

Adding git branch to bash prompt on snow leopard

Fresh3 days ago
Mar 15, 20261910 views
Confidence Score0%
0%

Problem

I am using this: It works however it does not update when I change directories or checkout a new branch. I also have this alias: Sample run: As you can see it is being set correctly but only if I reload bash_profile. I have wasted way to much time on this. I am using bash on snow leopard. Please he…

Error Output

$(__git_ps1 '(%s)')

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: Adding git branch to bash prompt on snow leopard

Low Risk

Okay problem solved. I was doing: and I needed to do: You need to escapee the dollar sign otherwise it is just run once and substituted in.

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment