Skip to content

vcs_hg survey: make _ps1_hg_status work again #27

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Mar 6, 2025
Merged

Conversation

chenx97
Copy link
Member

@chenx97 chenx97 commented Mar 5, 2025

  • fix the return value of _ps1_git_status when bash-git-status is used
  • port the output of _ps1_git_status to _ps1_hg_status

chenx97 and others added 3 commits March 6, 2025 01:01
Make _ps1_git_status return 1 instead of 0 when bash-git-status
returns 1. This makes sure _vcs_status won't treat $PWD as a git repo
and skip other vcs status functions.
Assign colors to the output based on the output of hg status, which
mostly behaves like git status --porcelain.
- Rename VCS components so that they are a lot more visible.
- Revise 20-vcs.sh and rid obscure logic.
@MingcongBai MingcongBai merged commit e8189b9 into master Mar 6, 2025
@chenx97 chenx97 deleted the vcs-hg-overhaul branch March 6, 2025 03:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants