2024-02-06 06:57:21 +01:00
|
|
|
|
## FIRST LINE/ROW: Info & Status
|
|
|
|
|
# First param ─┌
|
|
|
|
|
[username]
|
|
|
|
|
format = " [╭─$user]($style)@"
|
|
|
|
|
show_always = true
|
|
|
|
|
style_root = "bold red"
|
|
|
|
|
style_user = "bold red"
|
2024-01-23 06:16:50 +01:00
|
|
|
|
|
2024-02-06 06:57:21 +01:00
|
|
|
|
# Second param
|
|
|
|
|
[hostname]
|
|
|
|
|
disabled = false
|
|
|
|
|
format = "[$hostname]($style) in "
|
|
|
|
|
ssh_only = false
|
|
|
|
|
style = "bold dimmed red"
|
2024-02-10 19:33:32 +01:00
|
|
|
|
# If enabled hostnames with dashes will be cut off ##
|
|
|
|
|
#trim_at = "-"
|
2024-01-23 05:13:11 +01:00
|
|
|
|
|
2024-02-06 06:57:21 +01:00
|
|
|
|
# Third param
|
2024-01-23 05:13:11 +01:00
|
|
|
|
[directory]
|
2024-02-06 06:57:21 +01:00
|
|
|
|
style = "purple"
|
|
|
|
|
truncate_to_repo = true
|
|
|
|
|
truncation_length = 0
|
|
|
|
|
truncation_symbol = "repo: "
|
2024-01-23 05:13:11 +01:00
|
|
|
|
|
2024-02-06 06:57:21 +01:00
|
|
|
|
# Fourth param
|
|
|
|
|
[sudo]
|
|
|
|
|
disabled = false
|
2024-01-23 05:13:11 +01:00
|
|
|
|
|
2024-02-06 06:57:21 +01:00
|
|
|
|
# Before all the version info (python, nodejs, php, etc.)
|
2024-01-23 06:16:50 +01:00
|
|
|
|
[git_status]
|
2024-02-06 06:57:21 +01:00
|
|
|
|
ahead = "⇡${count}"
|
|
|
|
|
behind = "⇣${count}"
|
|
|
|
|
deleted = "x"
|
|
|
|
|
diverged = "⇕⇡${ahead_count}⇣${behind_count}"
|
|
|
|
|
style = "white"
|
2024-01-23 06:16:50 +01:00
|
|
|
|
|
2024-02-06 06:57:21 +01:00
|
|
|
|
# Last param in the first line/row
|
|
|
|
|
[cmd_duration]
|
2024-01-23 06:16:50 +01:00
|
|
|
|
disabled = true
|
2024-02-06 06:57:21 +01:00
|
|
|
|
format = "took [$duration]($style)"
|
|
|
|
|
min_time = 1
|
2024-01-23 05:13:11 +01:00
|
|
|
|
|
2024-01-23 06:16:50 +01:00
|
|
|
|
|
2024-02-06 06:57:21 +01:00
|
|
|
|
## SECOND LINE/ROW: Prompt
|
|
|
|
|
# Somethere at the beginning
|
|
|
|
|
[battery]
|
|
|
|
|
charging_symbol = ""
|
|
|
|
|
disabled = true
|
|
|
|
|
discharging_symbol = ""
|
|
|
|
|
full_symbol = ""
|
|
|
|
|
|
|
|
|
|
[[battery.display]] # "bold red" style when capacity is between 0% and 10%
|
2024-01-23 06:16:50 +01:00
|
|
|
|
disabled = false
|
2024-02-06 06:57:21 +01:00
|
|
|
|
style = "bold red"
|
|
|
|
|
threshold = 15
|
2024-01-23 05:13:11 +01:00
|
|
|
|
|
2024-02-06 06:57:21 +01:00
|
|
|
|
[[battery.display]] # "bold yellow" style when capacity is between 10% and 30%
|
2024-01-23 06:16:50 +01:00
|
|
|
|
disabled = true
|
2024-02-06 06:57:21 +01:00
|
|
|
|
style = "bold yellow"
|
|
|
|
|
threshold = 50
|
2024-01-23 05:13:11 +01:00
|
|
|
|
|
2024-02-06 06:57:21 +01:00
|
|
|
|
[[battery.display]] # "bold green" style when capacity is between 10% and 30%
|
|
|
|
|
disabled = true
|
2024-01-23 06:16:50 +01:00
|
|
|
|
style = "bold green"
|
2024-02-06 06:57:21 +01:00
|
|
|
|
threshold = 80
|
2024-01-23 05:13:11 +01:00
|
|
|
|
|
2024-02-06 06:57:21 +01:00
|
|
|
|
# Prompt: optional param 1
|
2024-01-23 05:13:11 +01:00
|
|
|
|
[time]
|
2024-02-06 06:57:21 +01:00
|
|
|
|
disabled = true
|
|
|
|
|
format = " 🕙 $time($style)\n"
|
2024-01-23 06:16:50 +01:00
|
|
|
|
style = "bright-white"
|
2024-02-06 06:57:21 +01:00
|
|
|
|
time_format = "%T"
|
|
|
|
|
|
|
|
|
|
# Prompt: param 2
|
|
|
|
|
[character]
|
|
|
|
|
error_symbol = " [×](bold red)"
|
|
|
|
|
success_symbol = " [╰─](bold red)"
|
|
|
|
|
|
|
|
|
|
# SYMBOLS
|
|
|
|
|
[status]
|
2024-01-23 05:13:11 +01:00
|
|
|
|
disabled = false
|
2024-02-06 06:57:21 +01:00
|
|
|
|
format = '[\[$symbol$status_common_meaning$status_signal_name$status_maybe_int\]]($style)'
|
|
|
|
|
map_symbol = true
|
|
|
|
|
pipestatus = true
|
|
|
|
|
symbol = "🔴"
|
2024-01-23 06:16:50 +01:00
|
|
|
|
|
2024-02-06 06:57:21 +01:00
|
|
|
|
[aws]
|
|
|
|
|
symbol = " "
|
|
|
|
|
|
|
|
|
|
[conda]
|
|
|
|
|
symbol = " "
|
|
|
|
|
|
|
|
|
|
[dart]
|
|
|
|
|
symbol = " "
|
|
|
|
|
|
|
|
|
|
[docker_context]
|
|
|
|
|
symbol = " "
|
|
|
|
|
|
|
|
|
|
[elixir]
|
|
|
|
|
symbol = " "
|
|
|
|
|
|
|
|
|
|
[elm]
|
|
|
|
|
symbol = " "
|
|
|
|
|
|
|
|
|
|
[git_branch]
|
|
|
|
|
symbol = " "
|
|
|
|
|
|
|
|
|
|
[golang]
|
|
|
|
|
symbol = " "
|
|
|
|
|
|
|
|
|
|
[hg_branch]
|
|
|
|
|
symbol = " "
|
|
|
|
|
|
|
|
|
|
[java]
|
|
|
|
|
symbol = " "
|
|
|
|
|
|
|
|
|
|
[julia]
|
|
|
|
|
symbol = " "
|
|
|
|
|
|
|
|
|
|
[nim]
|
|
|
|
|
symbol = " "
|
|
|
|
|
|
|
|
|
|
[nix_shell]
|
|
|
|
|
symbol = " "
|
2024-01-23 06:16:50 +01:00
|
|
|
|
|
|
|
|
|
[nodejs]
|
2024-02-06 06:57:21 +01:00
|
|
|
|
symbol = " "
|
|
|
|
|
|
|
|
|
|
[package]
|
|
|
|
|
symbol = " "
|
|
|
|
|
|
|
|
|
|
[perl]
|
|
|
|
|
symbol = " "
|
|
|
|
|
|
|
|
|
|
[php]
|
|
|
|
|
symbol = " "
|
|
|
|
|
|
|
|
|
|
[python]
|
|
|
|
|
symbol = " "
|
|
|
|
|
|
|
|
|
|
[ruby]
|
|
|
|
|
symbol = " "
|
|
|
|
|
|
|
|
|
|
[rust]
|
|
|
|
|
symbol = " "
|
|
|
|
|
|
|
|
|
|
[swift]
|
|
|
|
|
symbol = "ﯣ "
|