()
| 624 | func BuildEnvSection(cwd string) PromptSection { |
| 625 | env := GetEnvInfo() |
| 626 | displayCwd := cwd |
| 627 | if hook := currentPromptHooks().EnvInfo; hook != nil && env["cwd"] != "" { |
| 628 | displayCwd = env["cwd"] |
| 629 | } |
| 630 | if displayCwd == "" { |
| 631 | displayCwd = env["cwd"] |
| 632 | } |
| 633 | displayCwd = filepath.ToSlash(displayCwd) |
| 634 | content := fmt.Sprintf( |
no test coverage detected