Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
6e6310d (filesystem: New specific variable MSYS2_PS1., 2016-05-01) introduced the MSYS2_PS1 prompt script priority to allow multiple device configurations. Unfortunately, if MSYS2_PS1 was not set it overwrote the $PS1, even when specifically set by the users configuration, such as provided in the Git-for-Windows SDK (see git-for-windows/git#794 (comment)) and the monkey patch fix (git-for-windows/build-extra#122). Introduce a priority order so that the user's $PS1 (if set) has an intermediate priority between the MSYS2_PS1 and the default PS1. Signed-off-by: Philip Oakley <philipoakley@iee.org>
- Loading branch information
17a6004
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If I don't set PS1, it defaults to
\s-\v\$
, which, after this change, prevents the default from being set.This code runs before ~/,bashrc anyway, so where would I set PS1 such that the old code would have overwritten it?
17a6004
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm having the same issue. PS1 has a default, and so the nicer msys2 default never gets set.
17a6004
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can someone @yuriks @toby-allsopp confirm that simply rolling back to pkgrel 1 fixes all the problems? For me, pkgrel 1 created all the problems. see #651 which sets a forced PS1 and git for window issue git-for-windows/git#794 (comment) - That is, the title bar was not being set.
17a6004
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, at least for me, the 06.1 version was fine (I get the nice default colourful prompt) and 06.2 gives me the ugly bash default prompt.