Skip to content

Instantly share code, notes, and snippets.

@sihan010
Last active November 13, 2022 10:41
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 sihan010/cb78df4a2c316a7096cd032a73e33c13 to your computer and use it in GitHub Desktop.
Save sihan010/cb78df4a2c316a7096cd032a73e33c13 to your computer and use it in GitHub Desktop.
Starship simplistic configuration for Java/ Kotlin/ Node devs. Git and more. Prerequisite - Fira Code Nerd Font
format = """
$env_var\
$username\
$hostname\
$directory\
$git_branch\
$git_state\
$git_status\
$git_metrics\
$docker_context\
$kubernetes\
$fill \
$java\
$kotlin\
$nodejs\
$package\
$cmd_duration\
$jobs\
$time\
$memory_usage\
$battery\
"""
add_newline = false
[env_var.myself]
default = "sihan"
format = "[sihan]($style)>> "
style = "underline dimmed blue"
[fill]
symbol = "-"
style = "dimmed black"
[jobs]
style = "bold red"
number_threshold = 1
format = "[$symbol]($style)"
[directory]
read_only = " "
truncation_length = 3
truncation_symbol = "../"
truncate_to_repo = false
[time]
disabled = false
style = "bold white"
format = '([\[$time\]]($style)) '
use_12hr = true
[docker_context]
symbol = " "
[git_branch]
symbol = "  "
format = "[$symbol$branch]($style) "
[git_status]
format = '([\[ $all_status$ahead_behind \]]($style) )'
style = "cyan"
conflicted = " "
ahead = " "
behind = " "
diverged = " "
up_to_date = "✓"
untracked = " "
stashed = " "
modified = " "
staged = '[++\($count\)](green)'
renamed = "凜 "
deleted = " "
[git_state]
format = '\([$state( $progress_current/$progress_total)]($style)\) '
style = "bright-black"
[git_metrics]
disabled = false
[java]
symbol = " "
format = "[${symbol}(${version} )]($style) "
[kotlin]
symbol = " "
format = "[${symbol}(${version} )]($style) "
[nodejs]
symbol = " "
format = "[$symbol($version )]($style) "
[package]
symbol = " "
format = "[$symbol$version]($style) "
[memory_usage]
symbol = " "
disabled = false
format = "$symbol[${ram_pct}]($style) "
[battery]
format = "[$symbol$percentage]($style) "
[[battery.display]]
threshold = 100
style = "bold green"
[[battery.display]]
threshold = 50
style = "bold yellow"
[[battery.display]]
threshold = 20
style = "bold red"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment