show current git branch in tui (#4765)

Co-authored-by: GitHub Action <action@github.com>
This commit is contained in:
Aiden Cline
2025-11-25 19:39:20 -08:00
committed by GitHub
parent d95f724303
commit 09bc8d9ca4
7 changed files with 193 additions and 2 deletions

View File

@@ -478,7 +478,10 @@ function App() {
<text fg={theme.textMuted}>v{Installation.VERSION}</text>
</box>
<box paddingLeft={1} paddingRight={1}>
<text fg={theme.textMuted}>{process.cwd().replace(Global.Path.home, "~")}</text>
<text fg={theme.textMuted}>
{process.cwd().replace(Global.Path.home, "~")}
{sync.data.vcs?.vcs?.branch ? `:${sync.data.vcs.vcs.branch}` : ""}
</text>
</box>
</box>
<Show when={false}>