summaryrefslogtreecommitdiff
path: root/mac/.config/gitmux/gitmux.conf
blob: 6c7780e30ec94e13382cd2a0ea6e8c713e76241d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
tmux:
  # The symbols section defines the symbols printed before specific elements
  # of Git status displayed in tmux status string.
  symbols:
    # current branch name.
    branch: " "
    # Git SHA1 hash (in 'detached' state).
    hashprefix: ":"
    # 'ahead count' when local and remote branch diverged.
    ahead: " "
    # 'behind count' when local and remote branch diverged.
    behind: " "
    # count of files in the staging area.
    staged: "● "
    # count of files in conflicts.
    conflict: " "
    # count of modified files.
    modified: "󰓎 "
    # count of untracked files.
    untracked: " "
    # count of stash entries.
    stashed: " "
    # count of inserted lines (stats section).
    insertions: "✚ "
    # count of deleted lines (stats section).
    deletions: "󰍴 "
    # Shown when the working tree is clean.
    clean: " "

  # Styles are tmux format strings used to specify text colors and attributes
  # of Git status elements. See the STYLES section of tmux man page.
  # https://man7.org/linux/man-pages/man1/tmux.1.html#STYLES.
  styles:
    # Clear previous style.
    clear: "#[fg=#{@thm_fg}]"
    # Special tree state strings such as [rebase], [merge], etc.
    state: "#[fg=#{@thm_red},bold]"
    # Local branch name
    branch: "#[fg=#{@thm_peach},bold]"
    # Remote branch name
    remote: "#[fg=#{@thm_overlay_1}]"
    # 'divergence' counts
    divergence: "#[fg=#{@thm_pink}]"
    # 'staged' count
    staged: "#[fg=#{@thm_green},bold]"
    # 'conflicts' count
    conflict: "#[fg=#{@thm_red},bold]"
    # 'modified' count
    modified: "#[fg=#{@thm_maroon},bold]"
    # 'untracked' count
    untracked: "#[fg=#{@thm_mauve},bold]"
    # 'stash' count
    stashed: "#[fg=#{@thm_blue},bold]"
    # 'insertions' count
    insertions: "#[fg=#{@thm_green}]"
    # 'deletions' count
    deletions: "#[fg=#{@thm_red}]"
    # 'clean' symbol
    clean: "#[fg=#{@thm_green},bold]"
  # The layout section defines what components gitmux shows and the order in
  # which they appear on tmux status bar.
  #
  # Allowed components:
  #  - branch:            local branch name. Examples: `⎇ main`, `⎇ :345e7a0` or `[rebase]`
  #  - remote-branch:     remote branch name, for example: `origin/main`.
  #  - divergence:        divergence between local and remote branch, if any. Example: `↓·2↑·1`
  #  - remote:            alias for `remote-branch` followed by `divergence`, for example: `origin/main ↓·2↑·1`
  #  - flags:             symbols representing the working tree state, for example `✚ 1 ⚑ 1 … 2`
  #  - stats:             insertions/deletions (lines), for example`Σ56 Δ21`
  #  - some string `foo`: any other character of string is directly shown, for example `foo` or `|`
  layout: [branch, remote-branch, divergence, " - ", flags]

  # Additional configuration options.
  options:
    # Maximum displayed length for local and remote branch names.
    branch_max_len: 0
    # Trim left, right or from the center of the branch (`right`, `left` or `center`).
    branch_trim: right
    # Character indicating whether and where a branch was truncated.
    ellipsis: …
    # Hides the clean flag
    hide_clean: false
    # Swaps order of behind & ahead upstream counts - "↓·1↑·1" -> "↑·1↓·1".
    swap_divergence: false
    # Add a space between behind & ahead upstream counts.
    divergence_space: false