From a0802d69f8c6ba4550be8c2cca2724fdc395ad3e Mon Sep 17 00:00:00 2001
From: Marty Oehme <marty.oehme@gmail.com>
Date: Sat, 4 Jan 2025 14:37:10 +0100
Subject: [PATCH] terminal: Add starship prompt configuration

I have been relying on my starship configuration for a *long* time now,
but seemingly never added it into my dotfiles. This rectifies that.
---
 terminal/.config/starship.toml | 79 ++++++++++++++++++++++++++++++++++
 1 file changed, 79 insertions(+)
 create mode 100644 terminal/.config/starship.toml

diff --git a/terminal/.config/starship.toml b/terminal/.config/starship.toml
new file mode 100644
index 0000000..16a4bce
--- /dev/null
+++ b/terminal/.config/starship.toml
@@ -0,0 +1,79 @@
+format = """
+$custom\
+$sudo\
+$username\
+$directory\
+$git_state\
+$git_status\
+$status\
+$character
+"""
+
+right_format ="""
+$cmd_duration\
+$hostname\
+$git_branch\
+$fossil_branch\
+$go\
+$lua\
+$nodejs\
+$python\
+$package
+"""
+
+[directory]
+style = "blue"
+fish_style_pwd_dir_length = 1
+read_only = " "
+read_only_style = "purple"
+
+[character]
+success_symbol = "[❯](purple)"
+error_symbol = "[❯](red)"
+vimcmd_symbol = "[❮](green)"
+
+[git_branch]
+format = "[$branch]($style) "
+style = "bright-black"
+
+[git_status]
+format = "[[(*$conflicted$untracked$modified$staged$renamed$deleted)](218) ($ahead_behind$stashed)]($style) "
+style = "cyan"
+conflicted = "​"
+untracked = "​"
+modified = "​"
+staged = "​"
+renamed = "​"
+deleted = "​"
+stashed = "≡"
+
+[git_state]
+format = '\([$state( $progress_current/$progress_total)]($style)\) '
+style = "bright-black"
+
+[cmd_duration]
+format = "[$duration]($style) "
+style = "yellow"
+
+[python]
+format = "[$virtualenv]($style) "
+style = "bright-black"
+
+[fossil_branch]
+
+[line_break]
+disabled = true
+
+[package]
+symbol = ""
+style = "blue"
+
+[status]
+disabled = false
+symbol = " "
+
+[sudo]
+disabled = false
+symbol = " 󱍔 "
+style = 'bold yellow'
+format = "[$symbol]($style)"