diff options
| author | EuAndreh <eu@euandre.org> | 2026-04-13 08:31:11 -0300 |
|---|---|---|
| committer | EuAndreh <eu@euandre.org> | 2026-04-13 08:31:11 -0300 |
| commit | e88d530e85a5d8d52d44058525c77b0536dd1441 (patch) | |
| tree | 37946c23688e5c336ddb12bf9c438f9e0e8ae4fc /bin | |
| parent | bin/plop: Add new working utility (diff) | |
| download | dotfiles-e88d530e85a5d8d52d44058525c77b0536dd1441.tar.gz dotfiles-e88d530e85a5d8d52d44058525c77b0536dd1441.tar.xz | |
bin/vcs: Handle conflict states in git PS1
Diffstat (limited to 'bin')
| -rwxr-xr-x | bin/vcs | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -102,7 +102,7 @@ git_ps1() { HAS_DIFF=false HAS_UNTRACKED=false - if printf '%s\n' "$DIFF_LINES" | grep -q '^[A|D|M|R| ][M|D| ]'; then + if printf '%s\n' "$DIFF_LINES" | grep -Eq '^([ADMRU ][MDU ]|[ADU][ADU])'; then HAS_DIFF=true fi if printf '%s\n' "$DIFF_LINES" | grep -Eq '^([?][?]| A)'; then |
