mirror of
https://github.com/ChesterYue/ohmyzsh-theme-passion.git
synced 2026-07-21 20:11:03 +00:00
add local vars
This commit is contained in:
parent
51f054b3d3
commit
4c7cb8e455
1 changed files with 2 additions and 0 deletions
|
|
@ -163,6 +163,8 @@ function vscode_git_status() {
|
|||
# If the tracking line exists, get and parse it
|
||||
if [[ "$status_lines[1]" =~ "^## [^ ]+ \[(.*)\]" ]]; then
|
||||
local branch_statuses
|
||||
local match
|
||||
local branch_status
|
||||
branch_statuses=("${(@s/,/)match}")
|
||||
for branch_status in $branch_statuses; do
|
||||
if [[ ! $branch_status =~ "(behind|diverged|ahead) ([0-9]+)?" ]]; then
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue