Due to the logic in dpm, it checks if the command exists before installing it, and Apple ships with its own version. A different type of check would need to be run to ensure the Brew version does get installed.
Note that if the version of git from brew does not install, that means the __git_ps1 function is unavailable, which means that the entire PS1 string will not load due to a new condition that checks for it.
Due to the logic in
dpm
, it checks if the command exists before installing it, and Apple ships with its own version. A different type of check would need to be run to ensure the Brew version does get installed.Note that if the version of
git
frombrew
does not install, that means the__git_ps1
function is unavailable, which means that the entirePS1
string will not load due to a new condition that checks for it.