Skip to content

Instantly share code, notes, and snippets.

@nemolize
Created August 11, 2024 16:17
Show Gist options
  • Save nemolize/2398cd65d72cd65d47f36ba64b80c83a to your computer and use it in GitHub Desktop.
Save nemolize/2398cd65d72cd65d47f36ba64b80c83a to your computer and use it in GitHub Desktop.
starship.toml nemolize's configuration
"$schema" = 'https://starship.rs/config-schema.json'
#disabled_format = """
#$c\
#$cmake\
#$cobol\
#$crystal\
#$daml\
#$dart\
#$deno\
#$dotnet\
#$elixir\
#$elm\
#$erlang\
#$fennel\
#$gleam\
#$golang\
#$guix_shell\
#$haskell\
#$haxe\
#$helm\
#$java\
#$julia\
#$kotlin\
#$gradle\
#$lua\
#$nim\
#$nodejs\
#$ocaml\
#$opa\
#$perl\
#$php\
#$pulumi\
#$purescript\
#$python\
#$quarto\
#$raku\
#$rlang\
#$red\
#$ruby\
#$rust\
#$scala\
#$solidity\
#$swift\
#$terraform\
#$typst\
#$vlang\
#$vagrant\
#$zig\
#$buf\
#$nix_shell\
#$conda\
#$meson\
#$spack\
#$aws\
#$gcloud\
#$openstack\
#$azure\
#$nats\
#$kubernetes\
#$package\
#"""
format = """
$username\
$hostname\
$localip\
$shlvl\
$singularity\
$directory\
$vcsh\
$fossil_branch\
$fossil_metrics\
$git_branch\
$git_commit\
$git_state\
$git_metrics\
$git_status\
$hg_branch\
$pijul_channel\
$docker_context\
$memory_usage\
$direnv\
$env_var\
$custom\
$sudo\
$cmd_duration \
$status\
$line_break\
$time \
$jobs\
$battery\
$os\
$container\
$shell\
$character"""
#right_format = """
#"""
# シェルのプロンプトの間に空行を挿入する
add_newline = true
# `styles` reference
# https://starship.rs/advanced-config/#style-strings
# colors reference
# https://github.com/gawin/bash-colors-256
[cmd_duration]
min_time = 0
show_milliseconds = true
format = '🕑[$duration]($style)'
[directory]
truncation_length = 0
truncate_to_repo = false
format = ':[$path]($style)[$read_only]($read_only_style) '
truncation_symbol=':…/'
repo_root_style = 'bold 208'
[username]
show_always = true
format = '[$user]($style)'
[hostname]
ssh_only = false
format = '@[$ssh_symbol$hostname]($style)'
[git_status]
# see: https://starship.rs/config/#git-state
[time]
disabled = false
format = '[\[$time\]]($style)'
style = 'bold dimmed 246'
[status]
disabled = false
map_symbol = true
format = '[$symbol$common_meaning$signal_name$maybe_int\($status\)]($style) '
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment