Created
June 27, 2023 11:08
-
-
Save Derpitron/491deabc29d62cdfb55facff52ef99c3 to your computer and use it in GitHub Desktop.
My preliminary Starship.rs config
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
# Get editor completions based on the config schema | |
"$schema" = 'https://starship.rs/config-schema.json' | |
# Inserts a blank line between shell prompts | |
add_newline = true | |
format = """ | |
$username@\ | |
$hostname\ | |
: $directory\ | |
$vcsh\ | |
$fossil_branch\ | |
$hg_branch\ | |
$git_branch\ | |
$git_commit\ | |
$git_state\ | |
$git_metrics\ | |
$git_status\ | |
$pijul_channel\ | |
$fill\ | |
$shlvl\ | |
$kubernetes\ | |
$singularity\ | |
$docker_context\ | |
$package\ | |
$c\ | |
$cmake\ | |
$cobol\ | |
$daml\ | |
$dart\ | |
$deno\ | |
$dotnet\ | |
$elixir\ | |
$elm\ | |
$erlang\ | |
$fennel\ | |
$golang\ | |
$guix_shell\ | |
$haskell\ | |
$haxe\ | |
$helm\ | |
$java\ | |
$julia\ | |
$kotlin\ | |
$gradle\ | |
$lua\ | |
$nim\ | |
$nodejs\ | |
$ocaml\ | |
$opa\ | |
$perl\ | |
$php\ | |
$pulumi\ | |
$purescript\ | |
$python\ | |
$raku\ | |
$rlang\ | |
$red\ | |
$ruby\ | |
$rust\ | |
$scala\ | |
$solidity\ | |
$swift\ | |
$terraform\ | |
$vlang\ | |
$vagrant\ | |
$zig\ | |
$buf\ | |
$nix_shell\ | |
$conda\ | |
$meson\ | |
$spack\ | |
$aws\ | |
$gcloud\ | |
$openstack\ | |
$azure\ | |
$env_var\ | |
$crystal\ | |
$custom\ | |
$cmd_duration\ | |
$time\ | |
$localip\ | |
$memory_usage\ | |
$battery\ | |
$os\ | |
$line_break\ | |
$jobs\ | |
$status\ | |
$container\ | |
$shell\ | |
$sudo\ | |
$character""" | |
# Replace the '❯' symbol in the prompt with '➜' | |
[character] # The name of the module we are configuring is 'character' | |
success_symbol = '[❯](bold green)' # The 'success_symbol' segment is being set to '➜' with the color 'bold green' | |
[cmd_duration] | |
min_time = 0 | |
show_milliseconds = true | |
format = '\[[ $duration]($style)\]' | |
[shell] | |
disabled = false | |
bash_indicator = "" | |
fish_indicator = "" | |
powershell_indicator = "" | |
cmd_indicator = "" | |
[battery] | |
disabled = false | |
[[battery.display]] | |
threshold = 30 | |
style = "orange" | |
[time] | |
# See for format: https://docs.rs/chrono/0.4.7/chrono/format/strftime/index.html | |
# Example of this format: [ 04:05:29PM] | |
time_format = "%I:%M:%S%p" | |
format = '\[ $time($style)\]' | |
style = "bright-white" | |
disabled = false | |
[username] | |
format ="[$user]($style)" | |
style_user = "bold dimmed blue" | |
show_always = true | |
[directory] | |
truncation_length = 0 | |
format = "[$path]($style)[$lock_symbol]($lock_style) " | |
read_only = " " | |
[hostname] | |
ssh_only = false | |
format = "[$hostname]($style)" | |
trim_at = "-" | |
style = "bold dimmed cyan" | |
ssh_symbol = " " | |
[fill] | |
symbol = " " | |
[memory_usage] | |
format = '\[ $symbol[$ram( | $swap)]($style)\]' | |
symbol = " " | |
disabled = false | |
[os] | |
format = '\[$symbol[$edition(@$version)]($style)\]' | |
disabled = false | |
[os.symbols] | |
Alpaquita = " " | |
Alpine = " " | |
Amazon = " " | |
Android = " " | |
Arch = " " | |
Artix = " " | |
CentOS = " " | |
Debian = " " | |
DragonFly = " " | |
Emscripten = " " | |
EndeavourOS = " " | |
Fedora = " " | |
FreeBSD = " " | |
Garuda = " " | |
Gentoo = " " | |
HardenedBSD = " " | |
Illumos = " " | |
Linux = " " | |
Mabox = " " | |
Macos = " " | |
Manjaro = " " | |
Mariner = " " | |
MidnightBSD = " " | |
Mint = " " | |
NetBSD = " " | |
NixOS = " " | |
OpenBSD = " " | |
openSUSE = " " | |
OracleLinux = " " | |
Pop = " " | |
Raspbian = " " | |
Redhat = " " | |
RedHatEnterprise = " " | |
Redox = " " | |
Solus = " " | |
SUSE = " " | |
Ubuntu = " " | |
Unknown = " " | |
Windows = " " | |
# Git Settings | |
[git_branch] | |
format = '\[[$symbol$branch]($style)\]' | |
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-purple" | |
format = '([\[$all_status$ahead_behind\]]($style))' | |
[git_commit] | |
commit_hash_length = 8 | |
style = "bold purple" | |
[git_state] | |
format = '[\($state( $progress_current of $progress_total)\)]($style)' | |
# Vendor/Language/Tool Specific Settings | |
[c] | |
format = '\[[$symbol($version(-$name))]($style)\]' | |
symbol = " " | |
[cmake] | |
format = '\[[$symbol($version)]($style)\]' | |
[cobol] | |
format = '\[[$symbol($version)]($style)\]' | |
[conda] | |
format = '\[[$symbol$environment]($style)\]' | |
symbol = " " | |
[crystal] | |
format = '\[[$symbol($version)]($style)\]' | |
symbol = " " | |
[daml] | |
format = '\[[$symbol($version)]($style)\]' | |
[dart] | |
format = '\[[$symbol($version)]($style)\]' | |
symbol = " " | |
[deno] | |
format = '\[[$symbol($version)]($style)\]' | |
[docker_context] | |
format = '\[[$symbol$context]($style)\]' | |
symbol = " " | |
[dotnet] | |
format = '\[[$symbol($version)( $tfm)]($style)\]' | |
symbol = " " | |
[elixir] | |
format = '\[[$symbol($version \(OTP $otp_version\))]($style)\]' | |
symbol = " " | |
[elm] | |
format = '\[[$symbol($version)]($style)\]' | |
symbol = " " | |
[erlang] | |
format = '\[[$symbol($version)]($style)\]' | |
symbol = " " | |
[fennel] | |
format = '\[[$symbol($version)]($style)\]' | |
[fossil_branch] | |
format = '\[[$symbol$branch]($style)\]' | |
symbol = " " | |
[gcloud] | |
format = '\[[$symbol$account(@$domain)(\($region\))]($style)\]' | |
symbol = " " | |
[golang] | |
format = '\[[$symbol($version)]($style)\]' | |
symbol = " " | |
[gradle] | |
format = '\[[$symbol($version)]($style)\]' | |
symbol = " " | |
[guix_shell] | |
format = '\[[$symbol]($style)\]' | |
symbol = " " | |
[haskell] | |
format = '\[[$symbol($version)]($style)\]' | |
symbol = " " | |
[haxe] | |
format = '\[[$symbol($version)]($style)\]' | |
symbol = " " | |
[helm] | |
format = '\[[$symbol($version)]($style)\]' | |
[hg_branch] | |
symbol = " " | |
format = '\[[$symbol$branch]($style)\]' | |
[java] | |
format = '\[[$symbol($version)]($style)\]' | |
symbol = " " | |
[julia] | |
format = '\[[$symbol($version)]($style)\]' | |
symbol = " " | |
[kotlin] | |
format = '\[[$symbol($version)]($style)\]' | |
[kubernetes] | |
format = '\[[$symbol$context( \($namespace\))]($style)\]' | |
[lua] | |
format = '\[[$symbol($version)]($style)\]' | |
symbol = " " | |
[meson] | |
format = '\[[$symbol$project]($style)\]' | |
symbol = " " | |
[nim] | |
format = '\[[$symbol($version)]($style)\]' | |
symbol = " " | |
[nix_shell] | |
format = '\[[$symbol$state( \($name\))]($style)\]' | |
symbol = " " | |
[nodejs] | |
format = '\[[$symbol($version)]($style)\]' | |
symbol = " " | |
[ocaml] | |
format = '\[[$symbol($version)(\($switch_indicator$switch_name\))]($style)\]' | |
symbol = " " | |
[opa] | |
format = '\[[$symbol($version)]($style)\]' | |
[openstack] | |
format = '\[[$symbol$cloud(\($project\))]($style)\]' | |
[package] | |
format = '\[[$symbol$version]($style)\]' | |
symbol = " " | |
[perl] | |
format = '\[[$symbol($version)]($style)\]' | |
symbol = " " | |
[php] | |
format = '\[[$symbol($version)]($style)\]' | |
symbol = " " | |
[pijul_channel] | |
format = '\[[$symbol$channel]($style)\]' | |
symbol = "🪺 " | |
[purescript] | |
format = '\[[$symbol($version)]($style)\]' | |
symbol = " " | |
[python] | |
format = '\[[${symbol}${pyenv_prefix}(${version})(\($virtualenv\))]($style)\]' | |
symbol = " " | |
[raku] | |
format = '\[[$symbol($version-$vm_version)]($style)\]' | |
[red] | |
format = '\[[$symbol($version)]($style)\]' | |
[rlang] | |
format = '\[[$symbol($version)]($style)\]' | |
symbol = " " | |
[ruby] | |
format = '\[[$symbol($version)]($style)\]' | |
symbol = " " | |
[rust] | |
format = '\[[$symbol($version)]($style)\]' | |
symbol = " " | |
[scala] | |
format = '\[[$symbol($version)]($style)\]' | |
symbol = " " | |
[spack] | |
format = '\[[$symbol$environment]($style)\]' | |
symbol = "🅢 " | |
[sudo] | |
format = '\[[as $symbol]($style)\]' | |
[swift] | |
format = '\[[$symbol($version)]($style)\]' | |
symbol = " " | |
[terraform] | |
format = '\[[$symbol$workspace]($style)\]' | |
symbol = " " | |
[vagrant] | |
format = '\[[$symbol($version)]($style)\]' | |
[vlang] | |
format = '\[[$symbol($version)]($style)\]' | |
symbol = " " | |
[zig] | |
format = '\[[$symbol($version)]($style)\]' | |
symbol = "↯ " |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment