"$schema" = 'https://starship.rs/config-schema.json' format = """ [](color_orange)\ $username\ [](bg:color_yellow fg:color_orange)\ $directory\ [](fg:color_yellow bg:color_aqua)\ $jj\ $git_branch\ $git_status\ [](fg:color_aqua bg:color_blue)\ $c\ $rust\ $python\ [](fg:color_blue bg:color_bg3)\ $docker_context\ $conda\ [](fg:color_bg3 bg:color_bg1)\ $time\ [ ](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' # [username] # show_always = true # style_user = "bg:color_orange fg:color_fg0" # style_root = "bg:color_orange fg:color_fg0" # format = '[ $user ]($style)' [directory] style = "fg:color_fg0 bg:color_yellow" format = "[ $path ]($style)" truncation_length = 3 truncation_symbol = "…/" [directory.substitutions] "documents" = "󰈙 " "downloads" = " " "music" = "󰝚 " "pictures" = " " # [git_branch] # symbol = "" # style = "bg:color_aqua" # format = '[[ $symbol $branch ](fg:color_fg0 bg:color_aqua)]($style)' # [git_status] # style = "bg:color_aqua" # format = '[[($all_status$ahead_behind )](fg:color_fg0 bg:color_aqua)]($style)' [nodejs] symbol = "" style = "bg:color_blue" format = '[[ $symbol( $version) ](fg:color_fg0 bg:color_blue)]($style)' [c] symbol = " " style = "bg:color_blue" format = '[[ $symbol( $version) ](fg:color_fg0 bg:color_blue)]($style)' [rust] symbol = "" style = "bg:color_blue" format = '[[ $symbol( $version) ](fg:color_fg0 bg:color_blue)]($style)' [golang] symbol = "" style = "bg:color_blue" format = '[[ $symbol( $version) ](fg:color_fg0 bg:color_blue)]($style)' [java] symbol = " " style = "bg:color_blue" format = '[[ $symbol( $version) ](fg:color_fg0 bg:color_blue)]($style)' [kotlin] symbol = "" style = "bg:color_blue" format = '[[ $symbol( $version) ](fg:color_fg0 bg:color_blue)]($style)' [python] symbol = "" style = "bg:color_blue" format = '[[ $symbol( $version) ](fg:color_fg0 bg:color_blue)]($style)' [time] disabled = false time_format = "%R" style = "bg:color_bg1" format = '[[  $time ](fg:color_fg0 bg:color_bg1)]($style)' [line_break] disabled = false [character] disabled = false 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)' [[battery.display]] threshold = 42 # custom module for jj status [custom.jj] ignore_timeout = true description = "current jj status" symbol = "" when = true command = ''' jj root > /dev/null && jj log --revisions @ --no-graph --ignore-working-copy --color always --limit 1 --template ' separate(" ", "🥋", change_id.shortest(4), bookmarks, "|", concat( if(conflict, "💥"), if(divergent, "🚧"), if(hidden, "👻"), if(immutable, "🔒"), ), raw_escape_sequence("\x1b[1;32m") ++ if(empty, "(empty)"), raw_escape_sequence("\x1b[1;32m") ++ if(description.first_line().len() == 0, "(no description set)", if(description.first_line().substr(0, 29) == description.first_line(), description.first_line(), description.first_line().substr(0, 29) ++ "…", ) ) ++ raw_escape_sequence("\x1b[0m"), ) ' ''' # disable git modules [git_state] disabled = true [git_commit] disabled = true [git_metrics] disabled = true [git_branch] disabled = true # re-enable git_branch as long as we're not in a jj repo [custom.git_branch] when = true command = "jj root >/dev/null 2>&1 || starship module git_branch" description = "Only show git_branch if we're not in a jj repo"