Skip to content

Instantly share code, notes, and snippets.

@lukaskj
Last active July 11, 2023 03:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lukaskj/e6e179da44927553c0f6c14d02629d4b to your computer and use it in GitHub Desktop.
Save lukaskj/e6e179da44927553c0f6c14d02629d4b to your computer and use it in GitHub Desktop.
Starship shell config backup
"$schema" = 'https://starship.rs/config-schema.json'
# format = '''
# $directory $git_branch$git_status
# $custom$character'''
# export OS_ICON=
# Useful icons:
#    ✘ ✔ ➜
#                                 
format = """
$env_var\
$username\
$hostname\
$directory\
$git_branch\
$git_commit\
$git_state\
$git_status\
$docker_context\
$package\
$php\
$golang\
$nodejs\
$java\
$dart\
$perl\
$python\
$fill\
$shell\
$time\
$cmd_duration\
$status\
$line_break\
$character"""
#format = """
#[╭─](white)$username$hostname$directory$package$java$python$git_branch$shell$cmd_duration
#[╰─](white)$env_var$character """
# right_format = "$status"
add_newline = true
scan_timeout = 10
# continuation_prompt = "▶▶"
continuation_prompt = "[∙](bright-black) "
[character]
#success_symbol = "[❯](bold green)"
#error_symbol = "[❯](bold red)"
success_symbol = "[\\$](bold green)"
error_symbol = "[\\$](bold red)"
[fill]
symbol = "·"
style = "fg:240"
[directory]
style = "bold fg:#49A7DB"
# style = "bold fg:31"
# format = "[ $path ]($style)[$read_only]($read_only_style)"
format = " ·  [$path]($style) "
truncation_length = 100
truncate_to_repo = false
truncation_symbol = "…/"
read_only="🔒"
read_only_style="red"
[directory.substitutions]
#"~/projects" = ""
#"~/.config" = ""
#"~" = ""
[username]
disabled = false
show_always = true
style_user = "green"
format="[$user]($style)"
[hostname]
ssh_only = false
format = "@[$hostname]($style)"
#trim_at = "-"
style = "dimmed white"
disabled = false
[cmd_duration]
min_time = 5_000 # Show command duration over 10,000 milliseconds (=10 sec)
# min_time = 10 # Show command duration over 10,000 milliseconds (=10 sec)
format = " took [$duration]($style)"
[git_branch]
#symbol = " "
symbol = ""
style = "fg:#6ECA27"
#style = "fg:76"
format = '· [$symbol $branch]($style) '
[git_status]
# I don't care about untracked files or that there's a stash present.
untracked = ""
format = '([\[$conflicted$deleted$renamed$modified$staged$behind\]]($style) )'
modified = '*'
[status]
disabled = false
success_symbol = ""
# success_symbol = "a"
symbol = "✘"
format = " [$symbol]($style)"
# map_symbol = true
# pipestatus = true
# format = '[\[$status - $common_meaning\]](green)'
[env_var.OS_ICON]
format = "[$env_value]($style) "
variable = "OS_ICON"
disabled = false
style = "fg:7"
[shell]
disabled = false
format = " [\\( $indicator\\)]($style)"
fish_indicator = ""
unknown_indicator = "?"
style = "fg:7"
[memory_usage]
format = "$symbol[${ram}( | ${swap})]($style) "
threshold = 70
style = "bold dimmed white"
disabled = false
[time]
disabled = true
format = " [$time]($style)"
time_format = "%R"
[shlvl]
symbol = ""
style = "bold fg:#FF5813"
threshold = 3
format = "[$symbol$shlvl]($style)"
[package]
disabled=true
symbol = " "
style = "bold 208"
display_private = true
version_format = "v${raw}"
format = "[$symbol$version]($style) "
#
# === LANGUAGES ===
#
[nodejs]
disabled = true
[php]
symbol = " "
disabled = true
[java]
symbol = " "
disabled = true
[golang]
symbol = " "
disabled = true
[dotnet]
disabled = true
[gcloud]
disabled = true
[dart]
disabled = true
[hg_branch]
disabled = true
[elixir]
disabled = true
[elm]
disabled = true
[erlang]
disabled = true
[helm]
disabled = true
[julia]
disabled = true
[kotlin]
disabled = true
[nim]
disabled = true
[ocaml]
symbol = "🐫 "
disabled = true
[purescript]
disabled = true
[swift]
disabled = true
[zig]
disabled = true
[openstack]
disabled = true
[crystal]
disabled = true
[lua]
symbol = " "
style = "fg:#7EB2B1 bold"
format = " [$symbol($version)]($style)"
disabled = true
[jobs]
disabled = true
[battery]
disabled = true
[aws]
disabled = true
[rlang]
symbol = " "
disabled = true
[ruby]
symbol = " "
disabled = true
[rust]
symbol = " "
style = "fg:#FF5733 bold"
format = " [$symbol$version]($style)"
[scala]
symbol = " "
disabled = true
[python]
disabled=false
symbol = " "
style = "yellow"
# pyenv_version_name = true
pyenv_prefix = "pyenv "
python_binary = "python"
# format = ' [$symbol$pyenv_prefix$version (\($virtualenv\))]($style)'
format = '[$symbol$pyenv_prefix(\($virtualenv\))]($style)'
#### Disabled modules ####
# add these back to format if you want them:
# $time\
# $hg_branch\
# $dart\
# $dotnet\
# $elixir\
# $elm\
# $erlang\
# $golang\
# $helm\
# $java\
# $julia\
# $kotlin\
# $nim\
# $ocaml\
# $php\
# $purescript\
# $swift\
# $zig\
# $memory_usage\
# $gcloud\
# $openstack\
# $crystal\
# $lua\
# $jobs\
# $battery\
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment