75 lines
1.8 KiB
TOML
75 lines
1.8 KiB
TOML
# ┌──────────────────────────────────────────────────────────┐
|
||
# │ PLACEHOLDER — replace with your p10k-style config │
|
||
# │ This file is managed by Chezmoi. │
|
||
# │ Edit the source: chezmoi edit ~/.config/starship.toml │
|
||
# │ │
|
||
# │ NOTE: Starship reads from ~/.config/starship.toml │
|
||
# │ Chezmoi maps this file there via the directory layout. │
|
||
# └──────────────────────────────────────────────────────────┘
|
||
|
||
command_timeout = 1000
|
||
add_newline = true
|
||
|
||
format = """
|
||
$username\
|
||
$hostname\
|
||
$directory\
|
||
$git_branch\
|
||
$git_status\
|
||
$python\
|
||
$golang\
|
||
$nodejs\
|
||
$docker_context\
|
||
$cmd_duration\
|
||
$line_break\
|
||
$character"""
|
||
|
||
[character]
|
||
success_symbol = "[❯](bold green)"
|
||
error_symbol = "[❯](bold red)"
|
||
|
||
[directory]
|
||
truncation_length = 4
|
||
truncation_symbol = "…/"
|
||
truncate_to_repo = true
|
||
style = "bold cyan"
|
||
|
||
[git_branch]
|
||
format = "[$symbol$branch(:$remote_branch)]($style) "
|
||
symbol = " "
|
||
style = "bold purple"
|
||
|
||
[git_status]
|
||
format = '([\[$all_status$ahead_behind\]]($style) )'
|
||
style = "bold red"
|
||
|
||
[python]
|
||
format = '[${symbol}(${version} )(\($virtualenv\) )]($style)'
|
||
symbol = " "
|
||
|
||
[golang]
|
||
format = "[$symbol($version )]($style)"
|
||
symbol = " "
|
||
|
||
[nodejs]
|
||
format = "[$symbol($version )]($style)"
|
||
symbol = " "
|
||
|
||
[docker_context]
|
||
format = "[$symbol$context]($style) "
|
||
symbol = " "
|
||
only_with_files = true
|
||
|
||
[cmd_duration]
|
||
min_time = 2_000
|
||
format = "[$duration]($style) "
|
||
|
||
[username]
|
||
show_always = false
|
||
format = "[$user]($style)@"
|
||
|
||
[hostname]
|
||
ssh_only = true
|
||
format = "[$ssh_symbol$hostname]($style) "
|
||
ssh_symbol = "🌐 "
|