2024-04-22 12:38:23 -07:00
|
|
|
"$schema" = 'https://starship.rs/config-schema.json'
|
2024-04-05 14:18:27 -07:00
|
|
|
|
2024-02-01 09:41:23 -08:00
|
|
|
format = """
|
2024-04-22 12:38:23 -07:00
|
|
|
[](color_orange)\
|
2024-02-01 09:41:23 -08:00
|
|
|
$username\
|
2025-02-27 00:23:32 -08:00
|
|
|
|
2024-04-22 12:38:23 -07:00
|
|
|
[](bg:color_yellow fg:color_orange)\
|
2024-02-01 09:41:23 -08:00
|
|
|
$directory\
|
2025-02-27 00:23:32 -08:00
|
|
|
|
2024-04-22 12:38:23 -07:00
|
|
|
[](fg:color_yellow bg:color_aqua)\
|
2025-02-27 00:23:32 -08:00
|
|
|
${custom.jj}\
|
|
|
|
|
|
2024-04-22 12:38:23 -07:00
|
|
|
[](fg:color_aqua bg:color_blue)\
|
|
|
|
|
$rust\
|
2025-02-27 00:23:32 -08:00
|
|
|
|
2024-04-22 12:38:23 -07:00
|
|
|
[](fg:color_blue bg:color_bg3)\
|
2025-02-27 00:23:32 -08:00
|
|
|
$battery\
|
|
|
|
|
|
2024-04-22 12:38:23 -07:00
|
|
|
[](fg:color_bg3 bg:color_bg1)\
|
|
|
|
|
$time\
|
2025-02-27 00:23:32 -08:00
|
|
|
|
2024-04-22 12:38:23 -07:00
|
|
|
[ ](fg:color_bg1)\
|
|
|
|
|
$line_break$character"""
|
|
|
|
|
|
|
|
|
|
palette = 'gruvbox_dark'
|
|
|
|
|
[palettes.gruvbox_dark]
|
|
|
|
|
color_fg0 = '#fbf1c7'
|
|
|
|
|
color_bg1 = '#3c3836'
|
|
|
|
|
color_bg3 = '#665c54'
|
|
|
|
|
color_blue = '#458588'
|
|
|
|
|
color_aqua = '#689d6a'
|
|
|
|
|
color_green = '#98971a'
|
|
|
|
|
color_orange = '#d65d0e'
|
|
|
|
|
color_purple = '#b16286'
|
|
|
|
|
color_red = '#cc241d'
|
|
|
|
|
color_yellow = '#d79921'
|
|
|
|
|
|
2024-02-01 09:41:23 -08:00
|
|
|
[directory]
|
2024-04-22 12:38:23 -07:00
|
|
|
style = "fg:color_fg0 bg:color_yellow"
|
2024-02-01 09:41:23 -08:00
|
|
|
format = "[ $path ]($style)"
|
|
|
|
|
truncation_length = 3
|
|
|
|
|
truncation_symbol = "…/"
|
|
|
|
|
|
|
|
|
|
[directory.substitutions]
|
2024-04-22 12:38:23 -07:00
|
|
|
"documents" = " "
|
|
|
|
|
"downloads" = " "
|
|
|
|
|
"music" = " "
|
|
|
|
|
"pictures" = " "
|
2024-02-01 09:41:23 -08:00
|
|
|
|
2024-04-22 12:38:23 -07:00
|
|
|
[rust]
|
2025-04-01 13:27:41 -07:00
|
|
|
disabled = true
|
2025-02-27 00:23:32 -08:00
|
|
|
# # symbol = ""
|
2024-04-22 12:38:23 -07:00
|
|
|
style = "bg:color_blue"
|
2025-02-27 00:23:32 -08:00
|
|
|
format = '[[ $symbol($version) ](fg:color_fg0 bg:color_blue)]($style)'
|
2024-02-01 09:41:23 -08:00
|
|
|
|
|
|
|
|
[time]
|
|
|
|
|
disabled = false
|
2024-04-22 12:38:23 -07:00
|
|
|
time_format = "%R"
|
|
|
|
|
style = "bg:color_bg1"
|
|
|
|
|
format = '[[ $time ](fg:color_fg0 bg:color_bg1)]($style)'
|
|
|
|
|
|
|
|
|
|
[line_break]
|
|
|
|
|
disabled = false
|
2024-02-01 09:41:23 -08:00
|
|
|
|
2024-04-22 12:38:23 -07:00
|
|
|
[character]
|
2024-02-01 09:41:23 -08:00
|
|
|
disabled = false
|
2024-04-22 12:38:23 -07:00
|
|
|
success_symbol = '[](bold fg:color_green)'
|
|
|
|
|
error_symbol = '[](bold fg:color_red)'
|
|
|
|
|
vimcmd_symbol = '[](bold fg:color_green)'
|
|
|
|
|
vimcmd_replace_one_symbol = '[](bold fg:color_purple)'
|
|
|
|
|
vimcmd_replace_symbol = '[](bold fg:color_purple)'
|
|
|
|
|
vimcmd_visual_symbol = '[](bold fg:color_yellow)'
|
|
|
|
|
|
2025-01-21 13:18:55 -08:00
|
|
|
# custom module for jj status
|
|
|
|
|
[custom.jj]
|
|
|
|
|
ignore_timeout = true
|
|
|
|
|
description = "current jj status"
|
2025-02-27 00:23:32 -08:00
|
|
|
symbol = " 🥋 "
|
|
|
|
|
when = "exit ((jj root | complete).exit_code)"
|
|
|
|
|
style = "bg:color_aqua"
|
2025-01-21 13:18:55 -08:00
|
|
|
command = '''
|
2025-02-27 00:23:32 -08:00
|
|
|
jj log --no-pager --revisions @ --no-graph --ignore-working-copy --template '
|
|
|
|
|
separate(
|
|
|
|
|
" ",
|
|
|
|
|
change_id.shortest(),
|
2025-01-21 13:18:55 -08:00
|
|
|
bookmarks,
|
|
|
|
|
"|",
|
|
|
|
|
concat(
|
|
|
|
|
if(conflict, "💥"),
|
|
|
|
|
if(divergent, "🚧"),
|
|
|
|
|
if(hidden, "👻"),
|
|
|
|
|
if(immutable, "🔒"),
|
|
|
|
|
),
|
2025-02-27 00:23:32 -08:00
|
|
|
if(empty,
|
|
|
|
|
"(empty)"
|
|
|
|
|
),
|
|
|
|
|
if(description.first_line().len() == 0,
|
2025-01-21 13:18:55 -08:00
|
|
|
"(no description set)",
|
|
|
|
|
if(description.first_line().substr(0, 29) == description.first_line(),
|
|
|
|
|
description.first_line(),
|
2025-01-23 13:16:56 -08:00
|
|
|
description.first_line().substr(0, 29) ++ "...",
|
2025-01-21 13:18:55 -08:00
|
|
|
)
|
2025-02-27 00:23:32 -08:00
|
|
|
),
|
2025-01-21 13:18:55 -08:00
|
|
|
)
|
2025-02-27 00:23:32 -08:00
|
|
|
'
|
2025-01-21 13:18:55 -08:00
|
|
|
'''
|
2025-02-27 00:23:32 -08:00
|
|
|
|
2025-01-21 13:18:55 -08:00
|
|
|
|
|
|
|
|
# disable git modules
|
|
|
|
|
[git_state]
|
|
|
|
|
disabled = true
|
|
|
|
|
|
|
|
|
|
[git_commit]
|
|
|
|
|
disabled = true
|
|
|
|
|
|
|
|
|
|
[git_metrics]
|
|
|
|
|
disabled = true
|
|
|
|
|
|
|
|
|
|
[git_branch]
|
|
|
|
|
disabled = true
|