mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-01-11 22:07:48 +08:00
Compare commits
2 Commits
6f9eb4e1f6
...
7269ecf0b3
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
7269ecf0b3 | ||
|
|
1f4529912f |
@ -104,7 +104,7 @@ function _omz_git_prompt_status() {
|
||||
status_lines=("${(@f)${status_text}}")
|
||||
|
||||
# If the tracking line exists, get and parse it
|
||||
if [[ "$status_lines[1]" =~ "^## [^ ]+ \[(.*)\]" ]]; then
|
||||
if [[ "$status_lines[1]" =~ "^## [^[:space:]]+ \[(.*)\]" ]]; then
|
||||
local branch_statuses
|
||||
branch_statuses=("${(@s/,/)match}")
|
||||
for branch_status in $branch_statuses; do
|
||||
|
||||
Loading…
Reference in New Issue
Block a user