@@ -100,7 +100,7 @@ SL_SEGMENTS="model progress_bar:width=20 percentage tokens directory git_branch
100100
101101Each token is ` segment_name ` optionally followed by ` :key=value ` pairs. Unknown segment names are silently ignored.
102102
103- ** Default:** ` update model progress_bar percentage tokens directory added_dirs git_branch git_status usage_5hour usage_weekly `
103+ ** Default:** ` update model progress_bar percentage tokens directory worktree added_dirs git_branch git_status usage_5hour usage_weekly `
104104
105105| Segment | Description |
106106| ---| ---|
@@ -110,6 +110,7 @@ Each token is `segment_name` optionally followed by `:key=value` pairs. Unknown
110110| ` percentage ` | Context usage percentage |
111111| ` tokens ` | Token count (e.g. ` 84k/200k ` ) |
112112| ` directory ` | Working directory path |
113+ | ` worktree ` | Worktree info in ` {curly braces} ` (only when running in ` --worktree ` session) |
113114| ` added_dirs ` | Directories added via ` /add-dir ` , sorted alphabetically |
114115| ` git_branch ` | Git branch indicator |
115116| ` git_status ` | Git status: ` + ` staged, ` ! ` modified, ` x ` deleted, ` r ` renamed, ` ? ` untracked, ` = ` conflicted, ` $ ` stashed, ` > ` ahead, ` < ` behind, ` <> ` diverged |
@@ -125,6 +126,7 @@ Each token is `segment_name` optionally followed by `:key=value` pairs. Unknown
125126| ` model ` | ` effort ` | ` full ` /` short ` /(empty) | ` full ` | Show reasoning effort: full word, single letter, or hidden |
126127| ` progress_bar ` | ` width ` | integer | ` 12 ` | Bar width in characters |
127128| ` directory ` | ` basename_only ` | ` 0 ` /` 1 ` | ` 0 ` | Show only the directory name instead of the full path |
129+ | ` worktree ` | ` show ` | ` name ` /` branch ` /` path ` /` origin ` or comma-separated | ` name ` | Which worktree fields to display |
128130| ` added_dirs ` | ` basename_only ` | ` 0 ` /` 1 ` | ` 0 ` | Show only directory names instead of full paths |
129131| ` added_dirs ` | ` separator ` | string | ` • ` | Separator between directory paths |
130132| ` git_branch ` | ` hide_default ` | ` 0 ` /` 1 ` | ` 1 ` | Hide branch on ` main ` /` master ` |
@@ -254,6 +256,7 @@ gradient = [
254256| ` text_git ` | ` "#hex" ` | Git branch text |
255257| ` text_na ` | ` "#hex" ` | N/A indicator text |
256258| ` text_added_dirs ` | ` "#hex" ` | Added directories text |
259+ | ` text_worktree ` | ` "#hex" ` | Worktree info text |
257260| ` usage_light ` | ` "#hex" ` | Usage gauge: well ahead |
258261| ` usage_green ` | ` "#hex" ` | Usage gauge: on track |
259262| ` usage_yellow ` | ` "#hex" ` | Usage gauge: faster than sustainable |
0 commit comments