Does anyone still use Mercurial?
This commit is contained in:
1 file changed
+2
-2
@@ -102,9 +102,9 @@ prompt_cmd() {
|
||||
echo -n "$EXITSTATUS"
|
||||
tput setaf 2
|
||||
echo -n "]"
|
||||
if [ -x "$(which git)" ] || [ -x "$(which hg)" ]
|
||||
if [ -x "$(which git)" ]
|
||||
then
|
||||
branch=$(hg branch 2>/dev/null || git branch 2>/dev/null | grep "\*" | perl -pe 's/\* ([^(]\S+)|\* \(HEAD detached at (\S+)\)/\1\2/')
|
||||
branch=$(git branch 2>/dev/null | grep "\*" | perl -pe 's/\* ([^(]\S+)|\* \(HEAD detached at (\S+)\)/\1\2/')
|
||||
if [ ! -z "$branch" ]
|
||||
then
|
||||
echo
|
||||
|
||||
Reference in new issue
Block a user