You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add the display crate for per-field branch listing colors from
~/.git-b/config.toml, with --no-color and --color CLI overrides.
Co-authored-by: Cursor <cursoragent@cursor.com>
Copy file name to clipboardExpand all lines: README.md
+19Lines changed: 19 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -38,8 +38,27 @@ git-b # open the fuzzy branch picker
38
38
git-b feature # checkout the first branch matching "feature"
39
39
git-b -b new-name # git checkout -b new-name
40
40
man git-b # after installing the man page (see below)
41
+
git-b --no-color # disable picker colors for this run
41
42
```
42
43
44
+
### Colors
45
+
46
+
Picker lines show the branch name, short hash, and commit subject in separate colors. Defaults are cyan, yellow, and white.
47
+
48
+
Create `~/.git-b/config.toml`:
49
+
50
+
```toml
51
+
[colors]
52
+
enabled = true
53
+
name = "cyan"
54
+
hash = "yellow"
55
+
subject = "white"
56
+
```
57
+
58
+
Set `enabled = false` to turn colors off globally. Supported color names include `red`, `green`, `blue`, `magenta`, `cyan`, `gray`, and `bright-*` variants (for example `bright-green`). Use `default` or `none` to leave a field unstyled.
59
+
60
+
CLI flags override the config file for a single run: `--no-color`, or `--color NAME:HASH:SUBJECT` (for example `cyan:yellow:white`).
61
+
43
62
### Man page
44
63
45
64
Building from source generates `man/git-b.1` via [clap_mangen](https://crates.io/crates/clap_mangen). Install it with:
0 commit comments