Explicit git status and cleaner hostname styling

This commit is contained in:
Sage Vaillancourt 2023-12-13 14:31:07 -05:00
parent 801d44ca91
commit 94ffef797d
1 changed files with 19 additions and 1 deletions

View File

@ -1,5 +1,6 @@
add_newline = true add_newline = true
format = """ format = """
$git_status\
${custom.username}\ ${custom.username}\
$hostname\ $hostname\
$shlvl\ $shlvl\
@ -9,7 +10,6 @@ $git_branch\
$git_commit\ $git_commit\
$git_state\ $git_state\
$git_metrics\ $git_metrics\
$git_status\
$hg_branch\ $hg_branch\
$vcsh\ $vcsh\
$java\ $java\
@ -109,3 +109,21 @@ format = 'via [$symbol($version) (◎ $tfm )]($style)'
command = 'echo "[$(whoami | sed "s/vaillancourt//")]"' command = 'echo "[$(whoami | sed "s/vaillancourt//")]"'
when = true when = true
style = 'bold red' style = 'bold red'
[hostname]
ssh_symbol = '🌐'
format = '[$ssh_symbol](bold blue) [$hostname](bold dimmed green) '
[git_status]
conflicted = "=conflicted "
ahead = "⇡ahead "
behind = "⇣behind "
diverged = "⇕diverged "
untracked = "?untracked "
stashed = "\\$stashed "
modified = "!modified "
staged = "[++($count)](green)"
renamed = "»renamed "
deleted = "✘deleted "
format = "[$all_status]($style)\n"
style = 'red dimmed'