2020-11-14 14:53:35 +01:00
|
|
|
add_newline = false
|
2021-03-04 17:14:54 +01:00
|
|
|
format = """$username\
|
2020-11-14 14:53:35 +01:00
|
|
|
$hostname\
|
2021-03-04 17:14:54 +01:00
|
|
|
${custom.toolbox}\
|
2020-11-14 14:53:35 +01:00
|
|
|
$git_branch\
|
|
|
|
$git_commit\
|
|
|
|
$git_state\
|
|
|
|
$git_status\
|
2021-02-08 16:37:32 +01:00
|
|
|
$nix_shell\
|
2020-11-14 14:53:35 +01:00
|
|
|
$jobs\
|
|
|
|
$time\
|
2021-02-08 16:37:32 +01:00
|
|
|
$cmd_duration\
|
2020-11-14 14:53:35 +01:00
|
|
|
$line_break\
|
|
|
|
$directory\
|
|
|
|
$character"""
|
|
|
|
|
2020-10-11 15:09:15 +02:00
|
|
|
[username]
|
2020-11-14 14:53:35 +01:00
|
|
|
format = "[$user]($style)@"
|
2020-10-11 15:09:15 +02:00
|
|
|
show_always = true
|
|
|
|
|
|
|
|
[hostname]
|
2020-11-14 14:53:35 +01:00
|
|
|
format = "[$hostname]($style) "
|
2020-10-11 15:09:15 +02:00
|
|
|
ssh_only = false
|
|
|
|
|
2020-11-14 14:53:35 +01:00
|
|
|
[cmd_duration]
|
|
|
|
format = "\\(took [$duration]($style)\\) "
|
|
|
|
|
2020-10-11 15:09:15 +02:00
|
|
|
[time]
|
2020-11-14 14:53:35 +01:00
|
|
|
disabled = false
|
|
|
|
format = "at [$time]($style) "
|
|
|
|
|
|
|
|
[directory]
|
|
|
|
format = "[$path]($style)[$read_only]($read_only_style) "
|
|
|
|
|
2021-01-25 19:27:01 +01:00
|
|
|
[custom.toolbox]
|
|
|
|
when = "ls /run/.containerenv"
|
2021-02-08 16:37:32 +01:00
|
|
|
symbol = " "
|
2021-03-04 17:14:54 +01:00
|
|
|
command = "bash ~/.local/bin/toolbox_name.sh"
|
|
|
|
format = "in [$symbol($output )]($style)"
|
2021-01-25 19:27:01 +01:00
|
|
|
style = "bold purple"
|
2021-02-08 16:37:32 +01:00
|
|
|
|
|
|
|
[character]
|
|
|
|
success_symbol = "[\\$](bold green)"
|
|
|
|
error_symbol = "[\\$](bold red)"
|