Last active
June 9, 2023 19:17
-
-
Save ghostsquad/f062934d9095ba1e1e84438bec27e934 to your computer and use it in GitHub Desktop.
starship.toml - newmac
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ~/.config/starship.toml | |
# --- | |
# This is a WARP Optimized file! | |
# More work would be needed to get something pretty in both iTerm2 and Warp | |
# --- | |
add_newline = true # Inserts a blank line between shell prompts | |
command_timeout = 1000 # Change command timeout from 500 to 1000 ms | |
# simplified single line format to support WARP | |
# [┌───────────────────>](bold green) | |
# [│](bold green)$directory\ | |
# [└─>](bold green) | |
format = """ | |
$directory\ | |
$shlvl\ | |
$kubernetes\ | |
$git_branch\ | |
$git_commit\ | |
$git_state\ | |
$git_metrics\ | |
$git_status\ | |
$docker_context\ | |
$package\ | |
$golang\ | |
$helm\ | |
$nodejs\ | |
$pulumi\ | |
$python\ | |
$terraform\ | |
$memory_usage\ | |
$aws\ | |
$openstack\ | |
$env_var\ | |
$custom\ | |
$sudo\ | |
$cmd_duration\ | |
\ | |
$jobs\ | |
$battery\ | |
$time\ | |
$status\ | |
$container\ | |
$shell\ | |
""" | |
# Drop ugly default prompt characters | |
[character] | |
success_symbol = "" | |
# this isn't really needed on WARP, it's a native feature | |
# error_symbol = "[✖](bold red) " | |
error_symbol = "" | |
# --- | |
# Shows an icon depending on what distro it is running on | |
[env_var.STARSHIP_DISTRO] | |
format = '[$env_value](bold white) ' | |
variable = "STARSHIP_DISTRO" | |
disabled = false | |
# Shows the current username | |
# [env_var.USER] | |
# format = '[$env_value](bold white) ' | |
# variable = "USER" | |
# disabled = false | |
# Shows an icon depending on what device it is running on | |
[env_var.STARSHIP_DEVICE] | |
format = 'on [$env_value](bold yellow)' | |
variable = "STARSHIP_DEVICE" | |
disabled = false | |
# --- | |
# Shows the hostname | |
[hostname] | |
ssh_only = true | |
format = "[$hostname](bold yellow) " | |
# format = "<[$hostname]($style)>" | |
style = "bold dimmed white" | |
# trim_at = "-" | |
disabled = false | |
[memory_usage] | |
symbol = " " | |
format = "$symbol[${ram}( | ${swap})]($style) " | |
threshold = 70 | |
style = "bold dimmed white" | |
disabled = false | |
# Shows current directory | |
[directory] | |
# truncation_length = 1 | |
truncation_length = 5 | |
# truncation_symbol = "…/" | |
home_symbol = " ~" | |
read_only_style = "197" | |
read_only = " " | |
# read_only = " " | |
format = "[$path]($style)[$read_only]($read_only_style) " | |
# format = "[$path]($style)[$lock_symbol]($lock_style) " | |
[cmd_duration] | |
min_time = 5_000 # Show command duration over 5,000 milliseconds (=5 sec) | |
format = "took [$duration]($style)" | |
[battery] | |
full_symbol = "🔋" | |
charging_symbol = "🔌" | |
discharging_symbol = "⚡" | |
[[battery.display]] | |
threshold = 30 | |
style = "bold red" | |
[time] | |
time_format = "%T" | |
# format = "🕙 $time($style) " | |
style = "bright-white" | |
disabled = false | |
# --- | |
# Shows current git branch | |
[git_branch] | |
symbol = " " | |
# symbol = " " | |
# format = "via [$symbol$branch]($style) " | |
format = "[$symbol$branch]($style) " | |
# truncation_length = 4 | |
truncation_symbol = "…/" | |
# style = "bold green" | |
style = "bold yellow" | |
# Shows current git status | |
[git_status] | |
format = '[\($all_status$ahead_behind\)]($style) ' | |
style = "bold green" | |
conflicted = "🏳" | |
up_to_date = " " | |
untracked = " " | |
ahead = "⇡${count}" | |
diverged = "⇕⇡${ahead_count}⇣${behind_count}" | |
behind = "⇣${count}" | |
stashed = " " | |
modified = " " | |
staged = '[++\($count\)](green)' | |
renamed = "襁 " | |
deleted = " " | |
# [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 " | |
[git_commit] | |
commit_hash_length = 8 | |
style = "bold white" | |
[git_state] | |
format = '[\($state( $progress_current of $progress_total)\)]($style) ' | |
# --- | |
# Shows kubernetes context and namespace | |
[kubernetes] | |
symbol = "ﴱ " | |
format = 'on [$symbol$context\($namespace\)](bold purple) ' | |
disabled = false | |
[kubernetes.context_aliases] | |
"dev.local.cluster.k8s" = "dev" | |
".*/openshift-cluster/.*" = "openshift" | |
"gke_.*_(?P<var_cluster>[\\w-]+)" = "gke-$var_cluster" | |
[kubernetes.user_aliases] | |
"dev.local.cluster.k8s" = "dev" | |
"root/.*" = "root" | |
[helm] | |
disabled = false | |
# --- | |
[terraform] | |
disabled = false | |
[pulumi] | |
disabled = false | |
[aws] | |
symbol = " " | |
disabled = false | |
# --- | |
# Languages | |
[python] | |
disabled = false | |
symbol = " " | |
format = "[$symbol$version]($style) " | |
style = "bold green" | |
[golang] | |
disabled = false | |
symbol = " " | |
format = "[$symbol $version]($style) " | |
[nodejs] | |
disabled = false | |
symbol = " " | |
[package] | |
symbol = " " | |
disabled = false | |
# --- | |
# Disable some modules that aren't needed anymore | |
[username] | |
disabled = true | |
style_user = "bold dimmed blue" | |
# show_always = false | |
[vagrant] | |
disabled = true | |
[docker_context] | |
symbol = " " | |
disabled = true | |
[ruby] | |
disabled = true | |
[nix_shell] | |
disabled = true | |
symbol = " " | |
[spack] | |
disabled = true | |
symbol = "🅢 " | |
[rust] | |
disabled = true | |
symbol = " " | |
format = "[$symbol$version]($style)" | |
style = "bold green" | |
[azure] | |
disabled = true | |
[buf] | |
disabled = true | |
[bun] | |
disabled = true | |
[c] | |
disabled = true | |
[cmake] | |
disabled = true | |
[cobol] | |
disabled = true | |
[conda] | |
disabled = true | |
[crystal] | |
disabled = true | |
[daml] | |
disabled = true | |
[dart] | |
disabled = true | |
[deno] | |
disabled = true | |
[dotnet] | |
disabled = true | |
[elixir] | |
disabled = true | |
[elm] | |
disabled = true | |
[erlang] | |
disabled = true | |
[fennel] | |
disabled = true | |
[gcloud] | |
disabled = true | |
[guix_shell] | |
disabled = true | |
[gradle] | |
disabled = true | |
[haskell] | |
disabled = true | |
[haxe] | |
disabled = true | |
[java] | |
disabled = true | |
[julia] | |
disabled = true | |
[kotlin] | |
disabled = true | |
[lua] | |
disabled = true | |
[meson] | |
disabled = true | |
[hg_branch] | |
disabled = true | |
[nim] | |
disabled = true | |
[ocaml] | |
disabled = true | |
[pijul_channel] | |
disabled = true | |
[purescript] | |
disabled = true | |
[php] | |
disabled = true | |
[rlang] | |
disabled = true | |
[raku] | |
disabled = true | |
[red] | |
disabled = true | |
[scala] | |
disabled = true | |
[singularity] | |
disabled = true | |
[solidity] | |
disabled = true | |
[swift] | |
disabled = true | |
[vlang] | |
disabled = true | |
[vcsh] | |
disabled = true | |
[zig] | |
disabled = true | |
# --- |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment