From 54ed361d98d75d121ed14dd21333c93ed62199ec Mon Sep 17 00:00:00 2001 From: Tyler Kelley Date: Mon, 5 Feb 2024 23:57:21 -0600 Subject: [PATCH] Using better starship configuration --- config/home/files/starship.toml | 206 +++++++++++++++++++++----------- 1 file changed, 133 insertions(+), 73 deletions(-) diff --git a/config/home/files/starship.toml b/config/home/files/starship.toml index abe940b..1e48f88 100644 --- a/config/home/files/starship.toml +++ b/config/home/files/starship.toml @@ -1,87 +1,147 @@ -[battery] -full_symbol = "🔋" -charging_symbol = "🔌" -discharging_symbol = "⚡" +## FIRST LINE/ROW: Info & Status +# First param ─┌ +[username] +format = " [╭─$user]($style)@" +show_always = true +style_root = "bold red" +style_user = "bold red" -[[battery.display]] -threshold = 30 -style = "bold red" - -[character] -error_symbol = "[✖](bold red) " - -[cmd_duration] -min_time = 10_000 # Show command duration over 10,000 milliseconds (=10 sec) -format = " took [$duration]($style)" +# Second param +[hostname] +disabled = false +format = "[$hostname]($style) in " +ssh_only = false +style = "bold dimmed red" +trim_at = "-" +# Third param [directory] -truncation_length = 5 -format = "[$path]($style)[$lock_symbol]($lock_style) " +style = "purple" +truncate_to_repo = true +truncation_length = 0 +truncation_symbol = "repo: " + +# Fourth param +[sudo] +disabled = false + +# Before all the version info (python, nodejs, php, etc.) +[git_status] +ahead = "⇡${count}" +behind = "⇣${count}" +deleted = "x" +diverged = "⇕⇡${ahead_count}⇣${behind_count}" +style = "white" + +# Last param in the first line/row +[cmd_duration] +disabled = true +format = "took [$duration]($style)" +min_time = 1 + + +## SECOND LINE/ROW: Prompt +# Somethere at the beginning +[battery] +charging_symbol = "" +disabled = true +discharging_symbol = "" +full_symbol = "" + +[[battery.display]] # "bold red" style when capacity is between 0% and 10% +disabled = false +style = "bold red" +threshold = 15 + +[[battery.display]] # "bold yellow" style when capacity is between 10% and 30% +disabled = true +style = "bold yellow" +threshold = 50 + +[[battery.display]] # "bold green" style when capacity is between 10% and 30% +disabled = true +style = "bold green" +threshold = 80 + +# Prompt: optional param 1 +[time] +disabled = true +format = " 🕙 $time($style)\n" +style = "bright-white" +time_format = "%T" + +# Prompt: param 2 +[character] +error_symbol = " [×](bold red)" +success_symbol = " [╰─](bold red)" + +# SYMBOLS +[status] +disabled = false +format = '[\[$symbol$status_common_meaning$status_signal_name$status_maybe_int\]]($style)' +map_symbol = true +pipestatus = true +symbol = "🔴" + +[aws] +symbol = " " + +[conda] +symbol = " " + +[dart] +symbol = " " + +[docker_context] +symbol = " " + +[elixir] +symbol = " " + +[elm] +symbol = " " [git_branch] -format = " [$symbol$branch]($style) " -symbol = "🍣 " -style = "bold yellow" +symbol = " " -[git_commit] -commit_hash_length = 8 -style = "bold white" +[golang] +symbol = " " -[git_state] -format = '[\($state( $progress_current of $progress_total)\)]($style) ' +[hg_branch] +symbol = " " -[git_status] -conflicted = "⚔️ " -ahead = "🏎️ 💨 ×${count}" -behind = "🐢 ×${count}" -diverged = "🔱 🏎️ 💨 ×${ahead_count} 🐢 ×${behind_count}" -untracked = "🛤️ ×${count}" -stashed = "📦 " -modified = "📝 ×${count}" -staged = "🗃️ ×${count}" -renamed = "📛 ×${count}" -deleted = "🗑️ ×${count}" -style = "bright-white" -format = "$all_status$ahead_behind" - -[hostname] -ssh_only = false -format = "<[$hostname]($style)>" -trim_at = "-" -style = "bold dimmed white" -disabled = true +[java] +symbol = " " [julia] -format = "[$symbol$version]($style) " -symbol = "ஃ " -style = "bold green" +symbol = " " -[memory_usage] -format = "$symbol[${ram}( | ${swap})]($style) " -threshold = 70 -style = "bold dimmed white" -disabled = false +[nim] +symbol = " " -[package] -disabled = true - -[python] -format = "[$symbol$version]($style) " -style = "bold green" - -[rust] -format = "[$symbol$version]($style) " -style = "bold green" - -[time] -time_format = "%T" -format = "🕙 $time($style) " -style = "bright-white" -disabled = false - -[username] -style_user = "bold dimmed blue" -show_always = false +[nix_shell] +symbol = " " [nodejs] -format = "via [🤖 $version](bold green) " +symbol = " " + +[package] +symbol = " " + +[perl] +symbol = " " + +[php] +symbol = " " + +[python] +symbol = " " + +[ruby] +symbol = " " + +[rust] +symbol = " " + +[swift] +symbol = "ﯣ "