dotfiles/.config/starship.toml

78 lines
1.3 KiB
TOML
Raw Normal View History

2024-03-08 19:51:32 +01:00
"$schema" = 'https://starship.rs/config-schema.json'
2024-03-25 22:57:04 +01:00
add_newline = true
2024-03-08 19:51:32 +01:00
format = """\
2024-03-26 00:41:11 +01:00
$fill\
${custom.pwd}\
2024-03-26 00:41:11 +01:00
$line_break\
$hostname\
2024-03-08 19:51:32 +01:00
$directory\
($character)\
"""
right_format = """\
2024-03-26 00:41:11 +01:00
$cmd_duration\
$git_branch$git_commit$git_status$git_state\
"""
2024-03-08 19:51:32 +01:00
[hostname]
ssh_only = false
format = "[$hostname](italic bold)"
2024-03-26 00:41:11 +01:00
disabled = false
[time]
2024-03-08 19:51:32 +01:00
disabled = false
format = '[ $time](italic dimmed inverted)'
2024-03-26 00:41:11 +01:00
time_format = '%R'
[custom.pwd]
command = "prompt_pwd -D 100"
2024-03-26 00:41:11 +01:00
when = true
format = "[ $output]($style)"
style = "italic dimmed"
2024-03-08 19:51:32 +01:00
[directory]
fish_style_pwd_dir_length = 1
truncation_length = 1
truncate_to_repo = false
truncation_symbol = "…"
style = "italic"
2024-03-26 00:41:11 +01:00
[line_break]
disabled = false
[fill]
symbol = '┄'
style = 'dimmed fg:#888888'
2024-03-08 19:51:32 +01:00
[character]
success_symbol = "[%](bold)"
error_symbol = "[✖](bold red)"
2024-03-08 19:51:32 +01:00
2024-03-26 00:41:11 +01:00
[cmd_duration]
min_time = 500
format = '[󱦟 $duration ](yellow)'
2024-03-08 19:51:32 +01:00
[git_branch]
format = "[$symbol$branch]($style)"
style = "italic bold green"
2024-03-08 19:51:32 +01:00
symbol = " "
truncation_length = 16
truncation_symbol = ""
[git_commit]
format = "[ $hash$tag]($style) "
style = "cyan"
2024-03-08 19:51:32 +01:00
[git_state]
style = ""
[git_status]
format = '([$all_status$ahead_behind]($style))'
2024-03-26 00:41:11 +01:00
style = "fg:#00ac73"
modified = "[ 󰦒](yellow)"
deleted = "[ ✘](red)"
untracked = "[ ?](purple)"
staged = "[ 󰐖](cyan)"