44 lines
766 B
Django/Jinja
44 lines
766 B
Django/Jinja
add_newline = false
|
|
format = """$username\
|
|
$hostname\
|
|
${custom.toolbox}\
|
|
$git_branch\
|
|
$git_commit\
|
|
$git_state\
|
|
$git_status\
|
|
$nix_shell\
|
|
$jobs\
|
|
$time\
|
|
$cmd_duration\
|
|
$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) "
|
|
|
|
[custom.toolbox]
|
|
when = "ls /run/.containerenv"
|
|
symbol = " "
|
|
command = "bash ~/.local/bin/toolbox_name.sh"
|
|
format = "in [$symbol($output )]($style)"
|
|
style = "bold purple"
|
|
|
|
[character]
|
|
success_symbol = "[λ](bold green)"
|
|
error_symbol = "[λ](bold red)"
|