(starship): Add category to prompt.
This commit is contained in:
parent
eb828be3c7
commit
9d4af814c0
@ -1,6 +1,6 @@
|
|||||||
format = """
|
format = """
|
||||||
[░▒▓](#a3aed2)\
|
[░▒▓](#a3aed2)\
|
||||||
[ $username@$hostname - $custom](bg:#a3aed2 fg:#090c0c)\
|
[${custom.category} ★ $username@$hostname ★ ${custom.os}](bg:#a3aed2 fg:#090c0c)\
|
||||||
[](bg:#769ff0 fg:#a3aed2)\
|
[](bg:#769ff0 fg:#a3aed2)\
|
||||||
$directory\
|
$directory\
|
||||||
[](fg:#769ff0 bg:#394260)\
|
[](fg:#769ff0 bg:#394260)\
|
||||||
@ -89,6 +89,12 @@ format = '[[ $symbol($version)](fg:#769ff0 bg:#212736)]($style)'
|
|||||||
style = "fg:#769ff0 bg:#212736"
|
style = "fg:#769ff0 bg:#212736"
|
||||||
format = '[[ $symbol($version)](fg:#769ff0 bg:#212736)]($style)'
|
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]
|
[custom.os]
|
||||||
{{ if eq .chezmoi.os "linux" }}
|
{{ if eq .chezmoi.os "linux" }}
|
||||||
command = 'echo "{{ .chezmoi.osRelease.prettyName }}"'
|
command = 'echo "{{ .chezmoi.osRelease.prettyName }}"'
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user