# Get editor completions based on the config schema "$schema" = 'https://starship.rs/config-schema.json' format = """ [](fg:bright-purple)\ $os\ $shell\ $username\ [](bg:bright-red fg:bright-purple)\ $directory\ [](fg:bright-red bg:bright-blue)\ $git_branch\ $git_status\ $git_state\ [](fg:bright-blue bg:bright-cyan)\ $c\ $golang\ $python\ $gradle\ $java\ $nodejs\ $rust\ [](fg:bright-cyan bg:bright-green)\ $docker_context\ [](fg:bright-green bg:bright-blue)\ $time\ [ ](fg:bright-blue)\ """ right_format = """ [](fg:bright-red) $status\ [](bg:bright-red fg:bright-blue) $cmd_duration\ $hostname\ [](fg:bright-blue) """ # Disable the blank line at the start of the prompt # add_newline = false # You can also replace your username with a neat symbol like  or disable this # and use the os module below [username] style_user = "bg:bright-purple fg:black" style_root = "bg:bright-purple fg:black" format = '[$user ]($style)' disabled = false # An alternative to the username module which displays a symbol that # represents the current operating system [os] style = "bg:bright-purple fg:black" format = "[$symbol]($style)" disabled = false # Disabled by default [os.symbols] Ubuntu = " " Arch = " " CentOS = " " # AlmaLinux = " " NixOS = " " Windows = " " Macos = " " Alpine = " " [directory] style = "bg:bright-red fg:black" format = "[ $path ]($style)" truncation_length = 3 truncation_symbol = "…/" # Here is how you can shorten some long paths by text replacement # similar to mapped_locations in Oh My Posh: [directory.substitutions] "Documents" = " " "Downloads" = " " "Music" = " " "Pictures" = " " # Keep in mind that the order matters. For example: # "Important Documents" = "  " # will not be replaced, because "Documents" was already substituted before. # So either put "Important Documents" before "Documents" or use the substituted version: # "Important  " = "  " [c] symbol = " " style = "bg:bright-cyan fg:black" format = '[ $symbol ($version) ]($style)' [docker_context] symbol = " " style = "bg:bright-green fg:black" format = '[ $symbol $context ]($style) $path' [git_branch] symbol = "" style = "bg:bright-blue fg:black" format = '[ $symbol $branch ]($style)' [git_commit] symbol = "" style = "bg:bright-blue fg:black" format = "[($hash$tag)]($style) " [git_status] style = "bg:bright-blue fg:black" format = '[$all_status$ahead_behind]($style)' renamed = ' ' stashed = ' ' modified = ' ' untracked = '' conflicted = '' staged = ' ' up_to_date = ' ' diverged = ' ' deleted = ' ' [git_state] style = "bg:bright-blue fg:black" format = '[\($state( $progress_current of $progress_total)\)]($style) ' [golang] symbol = " " style = "bg:bright-cyan fg:black" format = '[ $symbol ($version) ]($style)' [gradle] style = "bg:bright-cyan fg:black" format = '[ $symbol ($version) ]($style)' [java] symbol = " " style = "bg:bright-cyan fg:black" format = '[ $symbol ($version) ]($style)' [nodejs] symbol = "" style = "bg:bright-cyan fg:black" format = '[ $symbol ($version) ]($style)' [python] symbol = " " style = "bg:bright-cyan fg:black" format = '[ ${symbol}${pyenv_prefix}(${version} )(\($virtualenv\))]($style)' [rust] symbol = "" style = "bg:bright-cyan fg:black" format = '[ $symbol ($version) ]($style)' [time] time_format = "%r" # Hour:Minute Format disabled = false style = "bg:bright-blue fg:black" format = '[ $time ]($style)' [shell] bash_indicator = "" powershell_indicator = "" zsh_indicator = "" style = "bg:bright-purple fg:black" format = '[$indicator ]($style)' disabled = false [cmd_duration] format = "[ $duration]($style)" style = "fg:black bg:bright-blue" show_milliseconds = true [status] disabled=false style="fg:black bg:bright-red" symbol="" # success_symbol="" format = "[ $symbol $status ]($style)" [hostname] style="bg:bright-blue fg:black" ssh_symbol="@" format='[ $ssh_symbol$hostname ]($style)'