Skip to content

Instantly share code, notes, and snippets.

@sinamics
Last active October 22, 2022 11:11
Show Gist options
  • Save sinamics/346a3c09f7c0d56c691da3c9b6306141 to your computer and use it in GitHub Desktop.
Save sinamics/346a3c09f7c0d56c691da3c9b6306141 to your computer and use it in GitHub Desktop.
starship config
format = """
$time \
$status\
$username@$hostname\
$git_branch$git_status$nodejs \
$directory\
$fill\
$python \
$package \
$memory_usage \
$cmd_duration \
$jobs \
$docker_context \
$line_break\
$character"""
# scan_timeout = 30
# command_timeout = 500
# add_newline = false
[username]
format = '[$user]($style)'
style_root = 'fg:190 bold'
style_user = 'fg:226 bold'
show_always = true
disabled = false
[hostname]
ssh_only = false
trim_at = '.'
format = '[$hostname]($style)'
style = 'fg:81 bold'
disabled = false
[docker_context]
symbol = '🐳 '
style = 'blue bold'
format = 'via [$symbol$context]($style) '
only_with_files = true
disabled = false
detect_extensions = []
detect_files = [
'docker-compose.yml',
'docker-compose.yaml',
'Dockerfile',
]
detect_folders = []
[fill]
symbol = " "
[directory]
truncation_length = 3
truncate_to_repo = true
fish_style_pwd_dir_length = 0
use_logical_path = true
format = '[$path]($style)[$read_only]($read_only_style)'
style = 'fg:85 bold'
disabled = false
read_only = '🔒'
read_only_style = 'red'
truncation_symbol = '.../'
home_symbol = '~'
[character]
success_symbol = "[❯](purple)"
error_symbol = "[❯](red)"
vicmd_symbol = "[❮](green)"
[git_branch]
format = 'on [$symbol$branch]($style)(:[$remote]($style)) '
symbol = ' '
style = 'bold purple'
truncation_length = 9223372036854775807
truncation_symbol = '…'
only_attached = false
always_show_remote = false
disabled = false
[git_status]
format = '([\[$all_status$ahead_behind\]]($style) )'
style = 'red bold'
stashed = '\$'
ahead = '⇡'
behind = '⇣'
diverged = '⇕'
conflicted = '='
deleted = '✘'
renamed = '»'
modified = '!'
staged = '+'
untracked = '?'
disabled = false
[git_state]
rebase = 'REBASING'
merge = 'MERGING'
revert = 'REVERTING'
cherry_pick = 'CHERRY-PICKING'
bisect = 'BISECTING'
am = 'AM'
am_or_rebase = 'AM/REBASE'
style = 'bold yellow'
format = '\([$state( $progress_current/$progress_total)]($style)\) '
disabled = false
[git_commit]
commit_hash_length = 7
format = '[\($hash$tag\)]($style) '
style = 'green bold'
only_detached = true
disabled = false
tag_symbol = '🏷 '
tag_disabled = false
[git_metrics]
disabled = false
[cmd_duration]
format = "[$duration]($style)"
style = "yellow"
[rust]
symbol = " "
[time]
format = '[$time]($style)'
style = 'bold fg:202'
use_12hr = false
disabled = false
utc_time_offset = 'local'
time_range = '-'
time_format = '%T %d/%m'
[shell]
format = '$indicator '
bash_indicator = 'bsh'
fish_indicator = 'fsh'
zsh_indicator = 'zsh'
powershell_indicator = 'psh'
ion_indicator = 'ion'
elvish_indicator = 'esh'
tcsh_indicator = 'tsh'
disabled = false
[python]
pyenv_version_name = false
pyenv_prefix = 'pyenv '
python_binary = [
'python',
'python3',
'python2',
]
format = 'py [${symbol}${pyenv_prefix}(${version} )(\($virtualenv\) )]($style)'
version_format = 'v${raw}'
style = 'yellow bold'
symbol = '🐍 '
disabled = false
detect_extensions = ['py']
# detect_files = [
# 'requirements.txt',
# '.python-version',
# 'pyproject.toml',
# 'Pipfile',
# 'tox.ini',
# 'setup.py',
# '__init__.py',
# ]
detect_folders = []
[perl]
symbol = '🐪 '
style = '149 bold'
format = 'via [$symbol($version )]($style)'
disabled = false
detect_extensions = [
'pl',
'pm',
'pod',
]
detect_files = [
'Makefile.PL',
'Build.PL',
'cpanfile',
'cpanfile.snapshot',
'META.json',
'META.yml',
'.perl-version',
]
detect_folders = []
[package]
format = 'is [$symbol$version]($style) '
symbol = '📦 '
style = '208 bold'
display_private = false
disabled = false
[nodejs]
format = 'via [$symbol($version )]($style)'
version_format = 'v${raw}'
symbol = ' '
style = 'bold green'
disabled = false
not_capable_style = 'bold red'
detect_extensions = [
'js',
'mjs',
'cjs',
'ts',
]
detect_files = [
'package.json',
'.node-version',
'.nvmrc',
]
detect_folders = ['node_modules']
[memory_usage]
threshold = 3
format = 'via $symbol[$ram( | $swap)]($style) '
style = 'white bold dimmed'
symbol = '🐏 '
disabled = true
[kubernetes]
symbol = '☸ '
format = '[$symbol$context( \($namespace\))]($style) in '
style = 'cyan bold'
disabled = false
[kubernetes.context_aliases]
[jobs]
threshold = 1
format = '[$symbol$number]($style) '
symbol = '✦'
style = 'bold blue'
disabled = false
[helm]
format = 'via [$symbol($version )]($style)'
symbol = '⎈ '
style = 'bold white'
disabled = false
detect_extensions = []
detect_files = [
'helmfile.yaml',
'Chart.yaml',
]
detect_folders = []
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment