From 29ced9b4f3834da9c5e1001a743ab6c134e0afad Mon Sep 17 00:00:00 2001 From: Violet Millie Date: Tue, 4 Jun 2024 21:12:23 +0100 Subject: [PATCH] Add Git branch and status --- starship.toml | 45 ++++++++++++++++++++++++++++++++++----------- 1 file changed, 34 insertions(+), 11 deletions(-) diff --git a/starship.toml b/starship.toml index 075690a..79b8532 100644 --- a/starship.toml +++ b/starship.toml @@ -1,36 +1,59 @@ format = ''' -╭─$time $username@$hostname $directory $git_branch +╭─$time $username$hostname $directory $git_branch$git_status ╰─$character ''' -# Inserts a blank line between shell prompts -add_newline = true +palette = 'transfem' -[character] # The name of the module we are configuring is 'character' +[palettes.transfem] +blue='#73DEFF' +# blue #73DEFF +# pastel pink #FFE2EE +# pink #FFB5D6 + +primary = '#73DEFF' +secondary = '#FFE2EE' +tertiary = '#FFB5D6' + +# red = '' + +# Inserts a blank line between shell prompts +add_newline = "true" + +[character] disabled = false -success_symbol = '[\$](bold green)' +success_symbol = '[\$](bold primary)' error_symbol = '[\$](bold red)' [time] disabled = false -format = '\($time\)' +format = '[\($time\)]($style)' time_format = '%a %d-%m 🕙 %H:%M' - +style="bold primary" [username] -format = '$user' +style_user = 'bold secondary' +style_root = 'black bold' +format = '[$user]($style)' disabled = false show_always = true [hostname] ssh_only = false -format="$hostname" -style="" +format="[@$hostname]($style)" +style="bold secondary" [directory] format="$path" +truncation_length = 3 +truncation_symbol = '.../' [git_branch] -format="$symbol $branch" +format="([$symbol $branch]($style))" symbol= '🌱' disabled=false +style="bold purple" + +[git_status] +format='([$all_status$ahead_behind]($style))' +modified="[*](bold yellow)"