Add Git branch and status

This commit is contained in:
Violet Millie 2024-06-04 21:12:23 +01:00
parent 87d45f708b
commit 29ced9b4f3
1 changed files with 34 additions and 11 deletions

View File

@ -1,36 +1,59 @@
format = '''
$time $username@$hostname $directory $git_branch
$time $username$hostname $directory $git_branch$git_status
$character
'''
# Inserts a blank line between shell prompts
add_newline = true
palette = 'transfem'
[character] # The name of the module we are configuring is 'character'
[palettes.transfem]
blue='#73DEFF'
# blue #73DEFF
# pastel pink #FFE2EE
# pink #FFB5D6
primary = '#73DEFF'
secondary = '#FFE2EE'
tertiary = '#FFB5D6'
# red = ''
# Inserts a blank line between shell prompts
add_newline = "true"
[character]
disabled = false
success_symbol = '[\$](bold green)'
success_symbol = '[\$](bold primary)'
error_symbol = '[\$](bold red)'
[time]
disabled = false
format = '\($time\)'
format = '[\($time\)]($style)'
time_format = '%a %d-%m 🕙 %H:%M'
style="bold primary"
[username]
format = '$user'
style_user = 'bold secondary'
style_root = 'black bold'
format = '[$user]($style)'
disabled = false
show_always = true
[hostname]
ssh_only = false
format="$hostname"
style=""
format="[@$hostname]($style)"
style="bold secondary"
[directory]
format="$path"
truncation_length = 3
truncation_symbol = '.../'
[git_branch]
format="$symbol $branch"
format="([$symbol $branch]($style))"
symbol= '🌱'
disabled=false
style="bold purple"
[git_status]
format='([$all_status$ahead_behind]($style))'
modified="[*](bold yellow)"