Skip to content

Instantly share code, notes, and snippets.

@drazulay
Last active November 5, 2024 20:15
Show Gist options
  • Save drazulay/cdf60d8c02ab75dd09f0d914c66d03e2 to your computer and use it in GitHub Desktop.
Save drazulay/cdf60d8c02ab75dd09f0d914c66d03e2 to your computer and use it in GitHub Desktop.
My starship prompt config file
"$schema" = 'https://starship.rs/config-schema.json'
add_newline = false
scan_timeout = 10
format = '$all$line_break$username$hostname$directory$character'
[fill]
symbol = '-'
style = 'white'
[character]
success_symbol = '[β–»](bold green) '
error_symbol = '[βœ—](bold red) '
[directory]
truncation_length = 32
truncation_symbol = '../'
[shlvl]
disabled = false
format = '[$symbol$shlvl]($style)'
repeat = true
symbol = '❯'
repeat_offset = 1
threshold = 0
[username]
style_user = 'blue bold'
style_root = 'red bold'
format = '[$user]($style)'
disabled = false
show_always = true
[hostname]
ssh_only = false
format = '[$ssh_symbol](bold green)@[$hostname](bold green) '
disabled = false
[aws]
format = '\[aws [$symbol($profile)(\($region\))(\[$duration\])]($style)\]'
[bun]
format = '\[bun [$symbol($version)]($style)\]'
[c]
format = '\[C [$symbol($version(-$name))]($style)\]'
detect_extensions = ['c', 'h']
[custom.cpp]
detect_extensions = ['cpp', 'hpp']
symbol = " "
format = '\[C++ [$symbol($output)]($style)\]'
command = "g++ --version | awk 'NR==1 {print $4}'"
[cmake]
format = '\[cmake [$symbol($version)]($style)\]'
[cmd_duration]
format = '\[[⏱ $duration]($style)\]'
[cobol]
format = '\[cobol [$symbol($version)]($style)\]'
[conda]
format = '\[conda [$symbol$environment]($style)\]'
[crystal]
format = '\[crystal [$symbol($version)]($style)\]'
[daml]
format = '\[daml [$symbol($version)]($style)\]'
[dart]
format = '\[dart [$symbol($version)]($style)\]'
[deno]
format = '\[deno [$symbol($version)]($style)\]'
[docker_context]
format = '\[docker [$symbol$context]($style)\]'
[dotnet]
format = '\[.NET [$symbol($version)(🎯 $tfm)]($style)\]'
[elixir]
format = '\[elixir [$symbol($version \(OTP $otp_version\))]($style)\]'
[elm]
format = '\[elm [$symbol($version)]($style)\]'
[erlang]
format = '\[erlang [$symbol($version)]($style)\]'
[fennel]
format = 'fennel \[[$symbol($version)]($style)\]'
[fossil_branch]
format = '\[[$symbol$branch]($style)\]'
[gcloud]
format = '\[[$symbol$account(@$domain)(\($region\))]($style)\]'
[git_branch]
style = 'bold cyan'
symbol = 'ξ‚ '
truncation_symbol = ''
format = '\[[$symbol: $branch(:$remote_branch)]($style)'
[git_commit]
style = 'bold green'
commit_hash_length = 8
tag_symbol = 'πŸ”– '
[git_status]
style = 'bold red'
format = ' [$all_status$ahead_behind]($style)\]'
[git_state]
style = 'blue'
format = '[\($state( $progress_current of $progress_total)\)]($style) '
cherry_pick = '[πŸ’ PICKING](bold red)'
[git_metrics]
added_style = 'bold blue'
format = '[+$added]($added_style)/[-$deleted]($deleted_style) '
[golang]
format = '\[go [$symbol($version)]($style)\]'
[gradle]
format = '\[gradle [$symbol($version)]($style)\]'
[guix_shell]
format = '\[[$symbol]($style)\]'
[haskell]
format = '\[haskell [$symbol($version)]($style)\]'
[haxe]
format = '\[haxe [$symbol($version)]($style)\]'
[helm]
format = '\[helm [$symbol($version)]($style)\]'
[hg_branch]
format = '\[[$symbol$branch]($style)\]'
[java]
format = '\[java [$symbol($version)]($style)\]'
[julia]
format = '\[julia [$symbol($version)]($style)\]'
[kotlin]
format = '\[kotlin [$symbol($version)]($style)\]'
[kubernetes]
format = '\[k8s [$symbol$context( \($namespace\))]($style)\]'
[lua]
format = '\[lua [$symbol($version)]($style)\]'
[memory_usage]
format = '\[$symbol[$ram( | $swap)]($style)\]'
[meson]
format = '\[meson [$symbol$project]($style)\]'
[nim]
format = '\[nim [$symbol($version)]($style)\]'
[nix_shell]
format = '\[[$symbol$state( \($name\))]($style)\]'
[nodejs]
format = '\[nodejs [$symbol($version)]($style)\]'
[ocaml]
format = '\[ocaml [$symbol($version)(\($switch_indicator$switch_name\))]($style)\]'
[opa]
format = '\[opa [$symbol($version)]($style)\]'
[openstack]
format = '\[openstack [$symbol$cloud(\($project\))]($style)\]'
[os]
format = '\[[$symbol]($style)\]'
[package]
format = '\[[$symbol$version]($style)\]'
[perl]
format = '\[perl [$symbol($version)]($style)\]'
[php]
format = '\[php [$symbol($version)]($style)\]'
[pijul_channel]
format = '\[[$symbol$channel]($style)\]'
[pulumi]
format = '\[pulumi [$symbol$stack]($style)\]'
[purescript]
format = '\[purescript [$symbol($version)]($style)\]'
[python]
format = '\[python [${symbol}${pyenv_prefix}(${version})(\($virtualenv\))]($style)\]'
[raku]
format = '\[[$symbol($version-$vm_version)]($style)\]'
[red]
format = '\[[$symbol($version)]($style)\]'
[ruby]
format = '\[ruby [$symbol($version)]($style)\]'
[rust]
format = '\[rust [$symbol($version)]($style)\]'
[scala]
format = '\[scala [$symbol($version)]($style)\]'
[spack]
format = '\[[$symbol$environment]($style)\]'
[sudo]
format = '\[[as $symbol]($style)\]'
[swift]
format = '\[swift [$symbol($version)]($style)\]'
[terraform]
format = '\[terraform [$symbol$workspace]($style)\]'
[time]
format = '\[[$time]($style)\]'
[vagrant]
format = '\[vagrant [$symbol($version)]($style)\]'
[vlang]
format = '\[vlang [$symbol($version)]($style)\]'
[zig]
format = '\[zig [$symbol($version)]($style)\]'
[solidity]
format = '\[solidity [$symbol($version)]($style)\]'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment