(starship): Add category to prompt.

This commit is contained in:
Heavy 2024-11-05 21:21:45 +01:00
parent eb828be3c7
commit 9d4af814c0

View File

@ -1,6 +1,6 @@
format = """
[░▒▓](#a3aed2)\
[ $username@$hostname - $custom](bg:#a3aed2 fg:#090c0c)\
[${custom.category} $username@$hostname ${custom.os}](bg:#a3aed2 fg:#090c0c)\
[](bg:#769ff0 fg:#a3aed2)\
$directory\
[](fg:#769ff0 bg:#394260)\
@ -89,6 +89,12 @@ format = '[[ $symbol($version)](fg:#769ff0 bg:#212736)]($style)'
style = "fg:#769ff0 bg:#212736"
format = '[[ $symbol($version)](fg:#769ff0 bg:#212736)]($style)'
[custom.category]
command = 'echo "[{{ .bash.prompt.category }}]"'
when = true
format = "[$output]($style)"
style = "bg:#a3aed2 fg:#090c0c bold"
[custom.os]
{{ if eq .chezmoi.os "linux" }}
command = 'echo "{{ .chezmoi.osRelease.prettyName }}"'