Skip to content

Commit 541d120

Browse files
committed
✍️ git status
1 parent da2d41f commit 541d120

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

tools/starship/starship.toml

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ ${directory}\
1111
[](fg:color_yellow bg:color_aqua)\
1212
${git_branch}\
1313
${git_status}\
14+
${git_state}\
1415
[](fg:color_aqua bg:color_blue)\
1516
${c}\
1617
${cpp}\
@@ -125,10 +126,25 @@ style = "bg:color_aqua"
125126
format = "[[ ${symbol} ${branch} ](fg:color_fg0 bg:color_aqua)](${style})"
126127

127128
[git_status]
128-
disabled = true
129+
disabled = false
130+
conflicted = "️${count}"
131+
ahead = "️${count}"
132+
behind = "${count}"
133+
diverged = "${ahead_count} ${behind_count}"
134+
untracked = "${count}"
135+
modified = "󰙏${count}"
136+
staged = "${count}"
137+
deleted = "${count}"
138+
renamed = "${count}"
139+
stashed = ""
129140
style = "bg:color_aqua"
130141
format = "[[(${all_status}${ahead_behind} )](fg:color_fg0 bg:color_aqua)](${style})"
131142

143+
[git_state]
144+
disabled = false
145+
format = "[[\\(${state}( ${progress_current}/${progress_total})\\)](bold fg:color_yellow bg:color_aqua)](${style})"
146+
style = "bg:color_aqua"
147+
132148
[nodejs]
133149
symbol = ""
134150
style = "bg:color_blue"

0 commit comments

Comments
 (0)