Using better starship configuration

This commit is contained in:
Tyler Kelley 2024-02-05 23:57:21 -06:00
parent 19fb44262a
commit 54ed361d98

View File

@ -1,87 +1,147 @@
[battery] ## FIRST LINE/ROW: Info & Status
full_symbol = "🔋" # First param ─┌
charging_symbol = "🔌" [username]
discharging_symbol = "⚡" format = " [╭─$user]($style)@"
show_always = true
style_root = "bold red"
style_user = "bold red"
[[battery.display]] # Second param
threshold = 30 [hostname]
style = "bold red" disabled = false
format = "[$hostname]($style) in "
[character] ssh_only = false
error_symbol = "[✖](bold red) " style = "bold dimmed red"
trim_at = "-"
[cmd_duration]
min_time = 10_000 # Show command duration over 10,000 milliseconds (=10 sec)
format = " took [$duration]($style)"
# Third param
[directory] [directory]
truncation_length = 5 style = "purple"
format = "[$path]($style)[$lock_symbol]($lock_style) " 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] [git_branch]
format = " [$symbol$branch]($style) " symbol = " "
symbol = "🍣 "
style = "bold yellow"
[git_commit] [golang]
commit_hash_length = 8 symbol = " "
style = "bold white"
[git_state] [hg_branch]
format = '[\($state( $progress_current of $progress_total)\)]($style) ' symbol = " "
[git_status] [java]
conflicted = "⚔️ " symbol = " "
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
[julia] [julia]
format = "[$symbol$version]($style) " symbol = " "
symbol = "ஃ "
style = "bold green"
[memory_usage] [nim]
format = "$symbol[${ram}( | ${swap})]($style) " symbol = " "
threshold = 70
style = "bold dimmed white"
disabled = false
[package] [nix_shell]
disabled = true symbol = " "
[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
[nodejs] [nodejs]
format = "via [🤖 $version](bold green) " symbol = " "
[package]
symbol = " "
[perl]
symbol = " "
[php]
symbol = " "
[python]
symbol = " "
[ruby]
symbol = " "
[rust]
symbol = " "
[swift]
symbol = "ﯣ "