added git state information

This commit is contained in:
william wu
2022-11-14 21:48:16 +01:00
parent 7a46fd5ede
commit bd6ccfaa14

View File

@@ -1,7 +1,7 @@
#format = """
#[╭─user───](bold blue) $username
#[┣─system─](bold yellow) $hostname
#[┣─project](bold red) $directory$rust$git_branch$git_status$package$golang$terraform$docker_context$python$docker_context$nodejs
#[┣─project](bold red) $directory$rust$git_branch$git_state$git_status$package$golang$terraform$docker_context$python$docker_context$nodejs
#[╰─cmd────](bold green)
#"""
[username]
@@ -77,6 +77,17 @@ behind = "⇣${count}"
untracked = "[${count}?](blue)"
staged = "[${count}+](green)"
[git_state]
style = "bold red"
format = "[$state( $progress_current/$progress_total) ]($style)"
rebase = "rebase"
merge = "merge"
revert = "revert"
cherry_pick = "cherry"
bisect = "bisect"
am = "am"
am_or_rebase = "am/rebase"
[golang]
symbol = " "