Skip to content

Instantly share code, notes, and snippets.

@dungdm93
Created November 19, 2021 10:40
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dungdm93/1efffa2730b54abd1a9de5647ecfb06c to your computer and use it in GitHub Desktop.
Save dungdm93/1efffa2730b54abd1a9de5647ecfb06c to your computer and use it in GitHub Desktop.
starship config
format = """
$username\
$hostname\
$directory\
$git_branch\
$git_commit\
$git_status\
$git_state\
$kubernetes\
$golang\
$deno\
$nodejs\
$conda\
$python\
$java\
$scala\
$cmd_duration\
$line_break\
$shlvl\
$time\
$character
"""
[aws]
format = '\[[$symbol($profile)(\($region\))(\[$duration\])]($style)\]'
symbol = ' '
# [azure]
# symbol = 'ﴃ '
[cmake]
format = '\[[$symbol($version)]($style)\]'
# symbol = '? '
[cmd_duration]
format = '[  $duration]($style)'
min_time = 50
show_milliseconds = true
# [clojure]
# format = '\[[$symbol($version)]($style)\]'
# symbol = ' '
[conda]
format = '\[[$symbol$environment]($style)\]'
symbol = ' '
[crystal]
format = '\[[$symbol$environment]($style)\]'
# symbol = '? '
[dart]
format = '\[[$symbol($version)]($style)\]'
symbol = ' '
[deno]
format = '\[[$symbol($version)]($style)\]'
# symbol = '? '
[directory]
format = "\b[](bg:$style)[$path](fg:white bg:$style)[$read_only](fg:$read_only_style bg:$style)[](fg:$style)"
style = '#4169e1'
read_only = ' '
truncation_symbol = '.../'
fish_style_pwd_dir_length = 1
[docker_context]
format = '\[[$symbol$context]($style)\]'
symbol = ' '
[dotnet]
format = '\[[$symbol($version)(🎯 $tfm)]($style)\]'
symbol = ' '
[elixir]
format = '\[[$symbol($version \(OTP $otp_version\))]($style)\]'
symbol = ' '
[elm]
format = '\[[$symbol($version)]($style)\]'
symbol = ' '
[erlang]
format = '\[[$symbol($version)]($style)\]'
symbol = ' '
# [fsharp]
# format = '\[[$symbol($version)]($style)\]'
# symbol = ' '
[gcloud]
format = '\[[$symbol$account(\($project\))]($style)\]'
symbol = ' '
[git_branch]
format = "\b[](fg:#4169e1 bg:$style)[$symbol$branch](fg:white bg:$style)[](fg:$style)"
style = '#f05133'
symbol = ' '
[git_commit]
format = "\b[ ﰖ $hash](fg:white bg:$style)[](fg:$style)"
style = '#f05133'
[git_status]
format = "\b[ $ahead_behind](fg:white bg:$style)([| $conflicted$stashed](fg:white bg:$style))[](fg:$style)"
style = '#f05133'
ahead = '${count}⇡ '
behind = '${count}⇣ '
diverged = '${ahead_count}⇡${behind_count}⇣ '
conflicted = '${count}⚠ '
stashed = '${count} '
staged = '${count} ' # (+) new & modified fils in the staging area
deleted = '${count} ' # (-) deleted files in the staging area
renamed = '${count} ' # (») renamed files in the staging area
modified = '${count} ' # (~) modified files in the working directory
untracked = '${count}? ' # (?) untracked files in the working directory
[golang]
format = '\[[$symbol($version)]($style)\]'
symbol = ' '
# [haskell]
# format = '\[[$symbol($version)]($style)\]'
# symbol = ' '
[helm]
format = '\[[$symbol($version)]($style)\]'
symbol = '⎈ '
[hg_branch]
symbol = ' '
[hostname]
format = "\b[@$hostname](fg:black bg:white)[](fg:white)"
# ssh_only = false
[java]
format = '\[[$symbol($version)]($style)\]'
symbol = ' '
[julia]
format = '\[[$symbol($version)]($style)\]'
symbol = ' '
[kotlin]
format = '\[[$symbol($version)]($style)\]'
# symbol = '? '
[kubernetes]
disabled = false
format = '\[[$symbol$context(\($namespace\))]($style)\]'
symbol = '☸ '
[kubernetes.context_aliases]
"gke_(?P<project>[\\w-]+)_(?P<location>[\\w-]+)_(?P<cluster>[\\w-]+)" = "gke/$project/$cluster"
[lua]
format = '\[[$symbol($version)]($style)\]'
symbol = ' '
[memory_usage]
symbol = ' '
[nim]
format = '\[[$symbol($version)]($style)\]'
symbol = ' '
[nix_shell]
format = '\[[$symbol$state( \($name\))]($style)\]'
symbol = ' '
[nodejs]
format = '\[[$symbol($version)]($style)\]'
symbol = ' '
[ocaml]
format = '\[[$symbol($version)(\($switch_indicator$switch_name\))]($style)\]'
# symbol = '? '
[openstack]
format = '\[[$symbol$cloud(\($project\))]($style)\]'
# symbol = '? '
[package]
format = '\[[$symbol$version]($style)\]'
symbol = ' '
[perl]
format = '\[[$symbol($version)]($style)\]'
symbol = ' '
[php]
format = '\[[$symbol($version)]($style)\]'
symbol = ' '
[purescript]
format = '\[[$symbol($version)]($style)\]'
# symbol = '? '
[python]
format = '\[[$symbol($version)]($style)\]'
symbol = ' '
[rlang]
format = '\[[$symbol($version)]($style)\]'
# symbol = '? '
[red]
format = '\[[$symbol($version)]($style)\]'
# symbol = '? '
[ruby]
format = '\[[$symbol($version)]($style)\]'
symbol = ' '
[rust]
format = '\[[$symbol($version)]($style)\]'
symbol = ' '
[scala]
format = '\[[$symbol($version)]($style)\]'
symbol = ' '
[shlvl]
disabled = false
symbol = ' '
threshold = 1
[swift]
format = '\[[$symbol($version)]($style)\]'
symbol = 'ﯣ '
[terraform]
format = '\[[$symbol$workspace]($style)\]'
# symbol = '? '
[time]
# disabled = false
format = "[](bg:$style)[ $time](fg:white bg:$style)[](fg:$style)"
style = "#4169e1"
[username]
format = "[$user](fg:$style bg:white)[](fg:white)"
# show_always = true
style_root = "red"
style_user = "black"
[vagrant]
format = '\[[$symbol($version)]($style)\]'
# symbol = '? '
[vlang]
format = '\[[$symbol($version)]($style)\]'
# symbol = '? '
[zig]
format = '\[[$symbol($version)]($style)\]'
# symbol = '⚡️ '
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment