Does anyone still use Mercurial?

This commit is contained in:
CRThaze committed 2026-07-29 10:59:53 +02:00
1 parent 58cbef2e09
commit 51908612da
1 file changed
+2 -2
+2 -2
View File
@@ -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