dotfiles/roles/user/shell/zsh/files/starship.toml

66 lines
1.1 KiB
TOML
Raw Normal View History

add_newline = false
format = """$username\
$hostname\
$directory\
$git_branch\
$git_commit\
$git_state\
$git_status\
${custom.toolbox}\
$nix_shell\
$jobs\
$time\
$cmd_duration\
$line_break\
$character"""
[username]
format = "[$user@]($style)"
show_always = true
style_user = "blue"
[hostname]
format = "[$hostname]($style) "
ssh_only = false
style = "blue"
[directory]
style = "yellow"
[git_branch]
format = "[$branch]($style)"
style = "cyan"
[git_state]
format = '\([$state( $progress_current/$progress_total)]($style)\) '
style = "cyan"
[git_status]
format = "[[(*$conflicted$untracked$modified$staged$renamed$deleted)](218) ($ahead_behind$stashed)]($style)"
style = "cyan"
conflicted = ""
untracked = ""
modified = ""
staged = ""
renamed = ""
deleted = ""
stashed = "≡"
[custom.toolbox]
when = "ls /run/.containerenv"
symbol = " "
command = "~/.local/bin/toolbox_name.sh"
format = "in [$symbol($output )]($style)"
style = "bold purple"
[time]
disabled = true
[cmd_duration]
format = "[$duration]($style) "
[character]
success_symbol = "[λ](green)"
error_symbol = "[λ](red)"
vimcmd_symbol = "[](green)"