dotfiles/playbooks/roles/shell/templates/starship.toml.j2
Matej Focko d2a345cc0e
Update starship.rs config
- install to local directory
- add command for toolbox status

Signed-off-by: Matej Focko <mfocko@redhat.com>
2021-01-26 22:53:48 +01:00

41 lines
671 B
Django/Jinja

add_newline = false
format = """${custom.toolbox}\
$username\
$hostname\
$git_branch\
$git_commit\
$git_state\
$git_status\
$cmd_duration\
$jobs\
$time\
$line_break\
$directory\
$character"""
[username]
format = "[$user]($style)@"
show_always = true
[hostname]
format = "[$hostname]($style) "
ssh_only = false
[cmd_duration]
format = "\\(took [$duration]($style)\\) "
[time]
disabled = false
format = "at [$time]($style) "
[directory]
format = "[$path]($style)[$read_only]($read_only_style) "
[character]
success_symbol = "[%%](bold green)"
error_symbol = "[%%](bold red)"
[custom.toolbox]
when = "ls /run/.containerenv"
command = "echo ⬢"
style = "bold purple"