git in prompt

This commit is contained in:
Daniel Lundin 2022-09-30 09:51:02 +02:00
parent 9ff681d013
commit 794ec3f0d3

View file

@ -4,6 +4,7 @@ format = """\
$hostname\ $hostname\
$directory\ $directory\
$git_branch\ $git_branch\
$git_commit\
$git_state\ $git_state\
$git_status\ $git_status\
($character)\ ($character)\
@ -30,11 +31,12 @@ style = "italic bold"
format = "[$symbol$branch]($style)" format = "[$symbol$branch]($style)"
style = "fg:#559955" style = "fg:#559955"
symbol = " " symbol = " "
truncation_length = 8 truncation_length = 16
truncation_symbol = "" truncation_symbol = ""
[git_commit] [git_commit]
style = "" format = "[ $hash$tag]($style) "
style = "fg:#559955"
[git_state] [git_state]
style = "" style = ""