From e8441b3a5308a48a0611776d523176ab5675cfc4 Mon Sep 17 00:00:00 2001 From: Tobias Reisinger Date: Mon, 28 Mar 2022 16:44:28 +0200 Subject: [PATCH] Improve starship config --- .config/starship.toml | 73 ++++++++++++++++++++++++++++++------------- 1 file changed, 51 insertions(+), 22 deletions(-) diff --git a/.config/starship.toml b/.config/starship.toml index fc46002..5855283 100644 --- a/.config/starship.toml +++ b/.config/starship.toml @@ -1,54 +1,80 @@ format = """ -$time $username$hostname$docker_context $directory$git_branch$git_commit$git_state$git_status\ -$fill$status$cmd_duration$jobs -$sudo$shell $character +[](blue)\ +$time\ +[](bg:purple fg:blue)\ +$sudo$username$hostname$docker_context\ +[](bg:green fg:purple)\ +$directory\ +[](bg:red fg:green)\ +$git_branch$git_commit$git_state$git_status\ +[](bg:#454158 fg:red)\ +$fill\ +[](bg:#454158 fg:yellow)\ +$status$cmd_duration\ +[](bg:yellow fg:cyan)\ +$jobs\ +[](cyan) +[](blue)\ +$shell$character """ -continuation_prompt = "▶" +continuation_prompt = "[](blue)[ ](bg:blue)[](blue) " [character] -success_symbol = "[➜](bold green)" -error_symbol = "[✗](bold red)" -vicmd_symbol = "[V](bold green)" +success_symbol = "[ ](fg:blue bg:green)[](green)" +error_symbol = "[ ](fg:blue bg:red)[](red)" +vicmd_symbol = "[ ](fg:blue bg:cyan)[](cyan)" [cmd_duration] min_time = 0 show_notifications = true show_milliseconds = true -format = "[祥$duration]($style) " +style = "bg:yellow fg:black" +format = "[$duration祥]($style)" [directory] read_only = "" truncation_length = 8 truncation_symbol = "…/" -style = "cyan" -repo_root_style = "cyan bold underline" -format = "[$read_only]($read_only_style)[$path]($style) " -repo_root_format = "[$read_only]($read_only_style)[$before_root_path]($style)[$repo_root]($repo_root_style)[$path]($style) " +style = "bg:green fg:black" +format = "[$read_only$path]($style)" [docker_context] -format = ' [\[$symbol$context\]]($style)' +style = "bg:purple" +symbol = "" +format = "[ $symbol$context]($style)" [fill] +style = "bg:#454158" symbol = " " +[git_branch] +symbol = "" +style = "bg:red fg:black" +format = '[ $symbol $branch ]($style)' + [git_commit] +style = "bg:red fg:black" tag_disabled = false tag_symbol = " " +format = '[\($hash$tag\) ]($style)' [git_status] -staged = "[+](green)" +style = "bg:red fg:black" +format = '[\[$all_status$ahead_behind\]]($style)' [hostname] ssh_only = false -style = "purple" -format = "@[$hostname]($style)" +style = "bg:purple" +format = "[@$hostname]($style)" trim_at = "" [jobs] number_threshold = 1 +style = "bg:cyan fg:black" symbol = "" +format = "[$symbol$number]($style)" [shell] bash_indicator = '\$' @@ -56,25 +82,28 @@ fish_indicator = "" zsh_indicator = '%%' powershell_indicator = "" unknown_indicator = "" -style = "white" +style = "bg:blue" format = '[$indicator]($style)' disabled = false [sudo] +style = "bg:purple" +symbol = "" format = "[$symbol]($style)" disabled = false [status] disabled = false -format = "[$status]($style) " +style = "bg:yellow fg:black" +format = "[$status ]($style)" [time] disabled = false -style = "white" +style = "bg:blue" format = "[$time]($style)" [username] -style_user = "yellow bold" -style_root = "red bold" -format = "[$user]($style)" show_always = true +style_user = "bg:purple" +style_root = "bg:purple underline" +format = '[$user]($style)'