245 lines
4.2 KiB
TOML
245 lines
4.2 KiB
TOML
# Get editor completions based on the config schema
|
||
'$schema' = 'https://starship.rs/config-schema.json'
|
||
|
||
### MAIN SHELL
|
||
# directory | username@hostname | cmd duration | sudo | VCS | language versions | kubernetes
|
||
# > input after line break
|
||
format = """
|
||
${custom.top}\
|
||
$directory\
|
||
$username\
|
||
$hostname\
|
||
$container\
|
||
$sudo\
|
||
$shlvl\
|
||
$vcsh\
|
||
$git_branch\
|
||
$git_commit\
|
||
$git_state\
|
||
$git_metrics\
|
||
$git_status\
|
||
$cmd_duration\
|
||
$status\
|
||
$fill\
|
||
$package\
|
||
$deno\
|
||
$golang\
|
||
$helm\
|
||
$lua\
|
||
$nodejs\
|
||
$php\
|
||
$python\
|
||
$rust\
|
||
$vagrant\
|
||
$aws\
|
||
$azure\
|
||
$gcloud\
|
||
$openstack\
|
||
$docker_context\
|
||
$kubernetes\
|
||
$terraform\
|
||
$line_break\
|
||
$shell\
|
||
${custom.bottom}\
|
||
$character"""
|
||
add_newline = true
|
||
|
||
[custom.top]
|
||
symbol = "┌"
|
||
style = "bold cyan"
|
||
when = true
|
||
|
||
[custom.bottom]
|
||
symbol = "└"
|
||
style = "bold cyan"
|
||
when = true
|
||
|
||
[character]
|
||
success_symbol = '[▶](bold cyan)'
|
||
error_symbol = '[▶](bold red)'
|
||
vicmd_symbol = '[▷](bold cyan)'
|
||
|
||
[directory]
|
||
style = 'fg:bright-cyan'
|
||
read_only = ''
|
||
use_os_path_sep = false # fuck windows :verynice:
|
||
|
||
[username]
|
||
format = '\[[$user]($style)\]'
|
||
|
||
[sudo]
|
||
disabled = false
|
||
format = '\[[$symbol]($style)\]'
|
||
style = 'fg:red'
|
||
symbol = ' '
|
||
|
||
[git_branch]
|
||
symbol = ' '
|
||
format = '\[[$symbol$branch]($style)\]'
|
||
style = 'fg:bright-purple'
|
||
|
||
[git_status]
|
||
format = '(\[[$all_status$ahead_behind]($style)\] )'
|
||
style = 'fg:bright-purple'
|
||
|
||
[hg_branch]
|
||
format = '\[[$symbol$branch]($style)\]'
|
||
|
||
[cmd_duration]
|
||
format = '\[[ﮫ $duration]($style)\]'
|
||
|
||
[fill]
|
||
symbol = ' '
|
||
style = 'fg:black'
|
||
|
||
### LANGUAGE VERSION INDICATORS
|
||
[c]
|
||
format = '\[[$symbol($version(-$name))]($style)\]'
|
||
|
||
[cmake]
|
||
format = '\[[$symbol($version)]($style)\]'
|
||
|
||
[cobol]
|
||
format = '\[[$symbol($version)]($style)\]'
|
||
|
||
[conda]
|
||
format = '\[[$symbol$environment]($style)\]'
|
||
|
||
[crystal]
|
||
format = '\[[$symbol($version)]($style)\]'
|
||
|
||
[dart]
|
||
format = '\[[$symbol($version)]($style)\]'
|
||
|
||
[deno]
|
||
format = '\[[$symbol($version)]($style)\]'
|
||
|
||
[dotnet]
|
||
format = '\[[$symbol($version)(🎯 $tfm)]($style)\]'
|
||
|
||
[elixir]
|
||
format = '\[[$symbol($version \(OTP $otp_version\))]($style)\]'
|
||
|
||
[elm]
|
||
format = '\[[$symbol($version)]($style)\]'
|
||
|
||
[erlang]
|
||
format = '\[[$symbol($version)]($style)\]'
|
||
|
||
[golang]
|
||
symbol = ' '
|
||
format = '\[[$symbol($version)]($style)\]'
|
||
|
||
[haskell]
|
||
symbol = ' '
|
||
format = '\[[$symbol($version)]($style)\]'
|
||
|
||
[helm]
|
||
symbol = 'ﴱ '
|
||
format = '\[[$symbol($version)]($style)\]'
|
||
|
||
[java]
|
||
symbol = ' '
|
||
format = '\[[$symbol($version)]($style)\]'
|
||
|
||
[julia]
|
||
format = '\[[$symbol($version)]($style)\]'
|
||
|
||
[kotlin]
|
||
format = '\[[$symbol($version)]($style)\]'
|
||
|
||
[lua]
|
||
symbol = ' '
|
||
format = '\[[$symbol($version)]($style)\]'
|
||
|
||
[nim]
|
||
format = '\[[$symbol($version)]($style)\]'
|
||
|
||
[nix_shell]
|
||
format = '\[[$symbol$state( \($name\))]($style)\]'
|
||
|
||
[nodejs]
|
||
symbol = ' '
|
||
format = '\[[$symbol($version)]($style)\]'
|
||
detect_extensions = []
|
||
style = 'green'
|
||
|
||
[ocaml]
|
||
format = '\[[$symbol($version)(\($switch_indicator$switch_name\))]($style)\]'
|
||
|
||
[package]
|
||
symbol = ' '
|
||
format = '\[[$symbol$version]($style)\]'
|
||
style = '16'
|
||
|
||
[perl]
|
||
format = '\[[$symbol($version)]($style)\]'
|
||
|
||
[php]
|
||
symbol = ' '
|
||
format = '\[[$symbol($version)]($style)\]'
|
||
|
||
[pulumi]
|
||
format = '\[[$symbol$stack]($style)\]'
|
||
|
||
[purescript]
|
||
format = '\[[$symbol($version)]($style)\]'
|
||
|
||
[python]
|
||
symbol = ' '
|
||
format = '\[[${symbol}${pyenv_prefix}(${version})(\($virtualenv\))]($style)\]'
|
||
|
||
[red]
|
||
format = '\[[$symbol($version)]($style)\]'
|
||
|
||
[ruby]
|
||
symbol = ' '
|
||
format = '\[[$symbol($version)]($style)\]'
|
||
|
||
[rust]
|
||
symbol = ' '
|
||
format = '\[[$symbol($version)]($style)\]'
|
||
|
||
[scala]
|
||
format = '\[[$symbol($version)]($style)\]'
|
||
|
||
[spack]
|
||
format = '\[[$symbol$environment]($style)\]'
|
||
|
||
[swift]
|
||
symbol = ' '
|
||
format = '\[[$symbol($version)]($style)\]'
|
||
|
||
[vagrant]
|
||
format = '\[[$symbol($version)]($style)\]'
|
||
|
||
[vlang]
|
||
format = '\[[$symbol($version)]($style)\]'
|
||
|
||
[zig]
|
||
format = '\[[$symbol($version)]($style)\]'
|
||
|
||
### CONTEXT INDICATORS
|
||
[aws]
|
||
symbol = ' '
|
||
format = '\[[$symbol($profile)(\($region\))(\[$duration\])]($style)\]'
|
||
|
||
[docker_context]
|
||
symbol = ' '
|
||
format = '\[[$symbol$context]($style)\]'
|
||
|
||
[gcloud]
|
||
symbol = ' '
|
||
format = '\[[$symbol$account(@$domain)(\($region\))]($style)\]'
|
||
|
||
[kubernetes]
|
||
symbol = ' '
|
||
format = '\[[$symbol($cluster/$namespace)]($style)\]'
|
||
disabled = true
|
||
|
||
[openstack]
|
||
symbol = ' '
|
||
format = '\[[$symbol$cloud(\($project\))]($style)\]'
|
||
|
||
[terraform]
|
||
format = '\[[$symbol$workspace]($style)\]'
|