Add Git branch and status
This commit is contained in:
parent
87d45f708b
commit
29ced9b4f3
|
@ -1,36 +1,59 @@
|
||||||
format = '''
|
format = '''
|
||||||
╭─$time $username@$hostname $directory $git_branch
|
╭─$time $username$hostname $directory $git_branch$git_status
|
||||||
╰─$character
|
╰─$character
|
||||||
'''
|
'''
|
||||||
|
|
||||||
# Inserts a blank line between shell prompts
|
palette = 'transfem'
|
||||||
add_newline = true
|
|
||||||
|
|
||||||
[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
|
disabled = false
|
||||||
success_symbol = '[\$](bold green)'
|
success_symbol = '[\$](bold primary)'
|
||||||
error_symbol = '[\$](bold red)'
|
error_symbol = '[\$](bold red)'
|
||||||
|
|
||||||
[time]
|
[time]
|
||||||
disabled = false
|
disabled = false
|
||||||
format = '\($time\)'
|
format = '[\($time\)]($style)'
|
||||||
time_format = '%a %d-%m 🕙 %H:%M'
|
time_format = '%a %d-%m 🕙 %H:%M'
|
||||||
|
style="bold primary"
|
||||||
|
|
||||||
[username]
|
[username]
|
||||||
format = '$user'
|
style_user = 'bold secondary'
|
||||||
|
style_root = 'black bold'
|
||||||
|
format = '[$user]($style)'
|
||||||
disabled = false
|
disabled = false
|
||||||
show_always = true
|
show_always = true
|
||||||
|
|
||||||
[hostname]
|
[hostname]
|
||||||
ssh_only = false
|
ssh_only = false
|
||||||
format="$hostname"
|
format="[@$hostname]($style)"
|
||||||
style=""
|
style="bold secondary"
|
||||||
|
|
||||||
[directory]
|
[directory]
|
||||||
format="$path"
|
format="$path"
|
||||||
|
truncation_length = 3
|
||||||
|
truncation_symbol = '.../'
|
||||||
|
|
||||||
[git_branch]
|
[git_branch]
|
||||||
format="$symbol $branch"
|
format="([$symbol $branch]($style))"
|
||||||
symbol= '🌱'
|
symbol= '🌱'
|
||||||
disabled=false
|
disabled=false
|
||||||
|
style="bold purple"
|
||||||
|
|
||||||
|
[git_status]
|
||||||
|
format='([$all_status$ahead_behind]($style))'
|
||||||
|
modified="[*](bold yellow)"
|
||||||
|
|
Loading…
Reference in New Issue