mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-01-22 01:07:36 +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}}")
|
status_lines=("${(@f)${status_text}}")
|
||||||
|
|
||||||
# If the tracking line exists, get and parse it
|
# If the tracking line exists, get and parse it
|
||||||
if [[ "$status_lines[1]" =~ "^## [^ ]+ \[(.*)\]" ]]; then
|
if [[ "$status_lines[1]" =~ "^## [^[:space:]]+ \[(.*)\]" ]]; then
|
||||||
local branch_statuses
|
local branch_statuses
|
||||||
branch_statuses=("${(@s/,/)match}")
|
branch_statuses=("${(@s/,/)match}")
|
||||||
for branch_status in $branch_statuses; do
|
for branch_status in $branch_statuses; do
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user