Skip to content

Instantly share code, notes, and snippets.

@erfan-khadem
Created May 25, 2021 06:54
Show Gist options
  • Save erfan-khadem/7f10752e85da91de6a6437cc56e7c00d to your computer and use it in GitHub Desktop.
Save erfan-khadem/7f10752e85da91de6a6437cc56e7c00d to your computer and use it in GitHub Desktop.
# Warning: This config does not include keys that have an unset value
# ~/.config/starship.toml
format = '''\[$time\] $status$cmd_duration$username@$hostname \[$directory\]
[> ](bold)'''
scan_timeout = 30
command_timeout = 500
add_newline = false
[aws]
format = 'on [$symbol($profile )(\($region\) )]($style)'
symbol = '☁️ '
style = 'bold yellow'
disabled = true
[aws.region_aliases]
[battery]
threshold = 10
style = 'red bold'
[character]
format = '$symbol '
success_symbol = '[❯](bold green)'
error_symbol = '[❯](bold red)'
vicmd_symbol = '[❮](bold green)'
disabled = false
[cmake]
format = 'via [$symbol($version )]($style)'
symbol = '△ '
style = 'bold blue'
disabled = true
detect_extensions = []
detect_files = [
'CMakeLists.txt',
'CMakeCache.txt',
]
detect_folders = []
[cmd_duration]
min_time = 2000
format = '\([$duration]($style)\) '
style = 'yellow bold'
show_milliseconds = true
disabled = false
show_notifications = false
min_time_to_notify = 45000
[conda]
truncation_length = 1
format = 'via [$symbol$environment]($style) '
symbol = '🅒 '
style = 'green bold'
ignore_base = true
disabled = true
[crystal]
format = 'via [$symbol($version )]($style)'
symbol = '🔮 '
style = 'bold red'
disabled = true
detect_extensions = ['cr']
detect_files = ['shard.yml']
detect_folders = []
[dart]
format = 'via [$symbol($version )]($style)'
symbol = '🎯 '
style = 'bold blue'
disabled = true
detect_extensions = ['dart']
detect_files = [
'pubspec.yaml',
'pubspec.yml',
'pubspec.lock',
]
detect_folders = ['.dart_tool']
[deno]
format = 'via [$symbol($version )]($style)'
symbol = '🦕 '
style = 'green bold'
disabled = true
detect_extensions = []
detect_files = [
'mod.ts',
'deps.ts',
'mod.js',
'deps.js',
]
detect_folders = []
[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 = '~'
[directory.substitutions]
[docker_context]
symbol = '🐳 '
style = 'blue bold'
format = 'via [$symbol$context]($style) '
only_with_files = true
disabled = true
detect_extensions = []
detect_files = [
'docker-compose.yml',
'docker-compose.yaml',
'Dockerfile',
]
detect_folders = []
[dotnet]
format = '[$symbol($version )(🎯 $tfm )]($style)'
symbol = '.NET '
style = 'blue bold'
heuristic = true
disabled = true
detect_extensions = [
'sln',
'csproj',
'fsproj',
'xproj',
]
detect_files = [
'global.json',
'project.json',
'Directory.Build.props',
'Directory.Build.targets',
'Packages.props',
]
detect_folders = []
[elixir]
format = 'via [$symbol($version \(OTP $otp_version\) )]($style)'
symbol = '💧 '
style = 'bold purple'
disabled = true
detect_extensions = []
detect_files = ['mix.exs']
detect_folders = []
[elm]
format = 'via [$symbol($version )]($style)'
symbol = '🌳 '
style = 'cyan bold'
disabled = true
detect_extensions = ['elm']
detect_files = [
'elm.json',
'elm-package.json',
'.elm-version',
]
detect_folders = ['elm-stuff']
[env_var]
symbol = ''
style = 'black bold dimmed'
format = 'with [$env_value]($style) '
disabled = false
[erlang]
format = 'via [$symbol($version )]($style)'
symbol = ' '
style = 'bold red'
disabled = true
detect_extensions = []
detect_files = [
'rebar.config',
'erlang.mk',
]
detect_folders = []
[gcloud]
format = 'on [$symbol$account(\($region\))]($style) '
symbol = '☁️ '
style = 'bold blue'
disabled = true
[gcloud.region_aliases]
[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 = true
[git_commit]
commit_hash_length = 7
format = '[\($hash$tag\)]($style) '
style = 'green bold'
only_detached = true
disabled = true
tag_symbol = '🏷 '
tag_disabled = true
[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 = true
[git_status]
format = '([\[$all_status$ahead_behind\]]($style) )'
style = 'red bold'
stashed = '\$'
ahead = '⇡'
behind = '⇣'
diverged = '⇕'
conflicted = '='
deleted = '✘'
renamed = '»'
modified = '!'
staged = '+'
untracked = '?'
disabled = true
[golang]
format = 'via [$symbol($version )]($style)'
symbol = '🐹 '
style = 'bold cyan'
disabled = true
detect_extensions = ['go']
detect_files = [
'go.mod',
'go.sum',
'glide.yaml',
'Gopkg.yml',
'Gopkg.lock',
'.go-version',
]
detect_folders = ['Godeps']
[helm]
format = 'via [$symbol($version )]($style)'
symbol = '⎈ '
style = 'bold white'
disabled = true
detect_extensions = []
detect_files = [
'helmfile.yaml',
'Chart.yaml',
]
detect_folders = []
[hg_branch]
symbol = ' '
style = 'bold purple'
format = 'on [$symbol$branch]($style) '
truncation_length = 9223372036854775807
truncation_symbol = '…'
disabled = true
[hostname]
ssh_only = false
trim_at = '.'
format = '[$hostname]($style)'
style = 'fg:81 bold'
disabled = false
[java]
disabled = true
format = 'via [$symbol($version )]($style)'
version_format = 'v${raw}'
style = 'red dimmed'
symbol = '☕ '
detect_extensions = [
'java',
'class',
'jar',
'gradle',
'clj',
'cljc',
]
detect_files = [
'pom.xml',
'build.gradle.kts',
'build.sbt',
'.java-version',
'deps.edn',
'project.clj',
'build.boot',
]
detect_folders = []
[jobs]
threshold = 1
format = '[$symbol$number]($style) '
symbol = '✦'
style = 'bold blue'
disabled = true
[julia]
format = 'via [$symbol($version )]($style)'
symbol = 'ஃ '
style = 'bold purple'
disabled = true
detect_extensions = ['jl']
detect_files = [
'Project.toml',
'Manifest.toml',
]
detect_folders = []
[kotlin]
format = 'via [$symbol($version )]($style)'
symbol = '🅺 '
style = 'bold blue'
kotlin_binary = 'kotlin'
disabled = true
detect_extensions = [
'kt',
'kts',
]
detect_files = []
detect_folders = []
[kubernetes]
symbol = '☸ '
format = '[$symbol$context( \($namespace\))]($style) in '
style = 'cyan bold'
disabled = true
[kubernetes.context_aliases]
[lua]
format = 'via [$symbol($version )]($style)'
symbol = '🌙 '
style = 'bold blue'
lua_binary = 'lua'
disabled = true
detect_extensions = ['lua']
detect_files = ['.lua-version']
detect_folders = ['lua']
[memory_usage]
threshold = 75
format = 'via $symbol[$ram( | $swap)]($style) '
style = 'white bold dimmed'
symbol = '🐏 '
disabled = true
[nim]
format = 'via [$symbol($version )]($style)'
symbol = '👑 '
style = 'yellow bold'
disabled = true
detect_extensions = [
'nim',
'nims',
'nimble',
]
detect_files = ['nim.cfg']
detect_folders = []
[nix_shell]
format = 'via [$symbol$state( \($name\))]($style) '
symbol = '❄️ '
style = 'bold blue'
impure_msg = 'impure'
pure_msg = 'pure'
disabled = true
[nodejs]
format = 'via [$symbol($version )]($style)'
version_format = 'v${raw}'
symbol = ' '
style = 'bold green'
disabled = true
not_capable_style = 'bold red'
detect_extensions = [
'js',
'mjs',
'cjs',
'ts',
]
detect_files = [
'package.json',
'.node-version',
'.nvmrc',
]
detect_folders = ['node_modules']
[ocaml]
global_switch_indicator = ''
local_switch_indicator = '*'
format = 'via [$symbol($version )(\($switch_indicator$switch_name\) )]($style)'
symbol = '🐫 '
style = 'bold yellow'
disabled = true
detect_extensions = [
'opam',
'ml',
'mli',
're',
'rei',
]
detect_files = [
'dune',
'dune-project',
'jbuild',
'jbuild-ignore',
'.merlin',
]
detect_folders = [
'_opam',
'esy.lock',
]
[openstack]
format = 'on [$symbol$cloud(\($project\))]($style) '
symbol = '☁️ '
style = 'bold yellow'
disabled = true
[package]
format = 'is [$symbol$version]($style) '
symbol = '📦 '
style = '208 bold'
display_private = false
disabled = true
[perl]
symbol = '🐪 '
style = '149 bold'
format = 'via [$symbol($version )]($style)'
disabled = true
detect_extensions = [
'pl',
'pm',
'pod',
]
detect_files = [
'Makefile.PL',
'Build.PL',
'cpanfile',
'cpanfile.snapshot',
'META.json',
'META.yml',
'.perl-version',
]
detect_folders = []
[php]
symbol = '🐘 '
style = '147 bold'
format = 'via [$symbol($version )]($style)'
disabled = true
detect_extensions = ['php']
detect_files = [
'composer.json',
'.php-version',
]
detect_folders = []
[purescript]
format = 'via [$symbol($version )]($style)'
symbol = '<=> '
style = 'bold white'
disabled = true
detect_extensions = ['purs']
detect_files = ['spago.dhall']
detect_folders = []
[python]
pyenv_version_name = false
pyenv_prefix = 'pyenv '
python_binary = [
'python',
'python3',
'python2',
]
format = 'via [${symbol}${pyenv_prefix}(${version} )(\($virtualenv\) )]($style)'
version_format = 'v${raw}'
style = 'yellow bold'
symbol = '🐍 '
disabled = true
detect_extensions = ['py']
detect_files = [
'requirements.txt',
'.python-version',
'pyproject.toml',
'Pipfile',
'tox.ini',
'setup.py',
'__init__.py',
]
detect_folders = []
[red]
format = 'via [$symbol($version )]($style)'
symbol = '🔺 '
style = 'red bold'
disabled = true
detect_extensions = [
'red',
'reds',
]
detect_files = []
detect_folders = []
[ruby]
format = 'via [$symbol($version )]($style)'
version_format = 'v${raw}'
symbol = '💎 '
style = 'bold red'
disabled = true
detect_extensions = ['rb']
detect_files = [
'Gemfile',
'.ruby-version',
]
detect_folders = []
[rust]
format = 'via [$symbol($version )]($style)'
version_format = 'v${raw}'
symbol = '🦀 '
style = 'bold red'
disabled = true
detect_extensions = ['rs']
detect_files = ['Cargo.toml']
detect_folders = []
[scala]
disabled = true
format = 'via [$symbol($version )]($style)'
style = 'red bold'
symbol = '🆂 '
detect_extensions = [
'sbt',
'scala',
]
detect_files = [
'.scalaenv',
'.sbtenv',
'build.sbt',
]
detect_folders = ['.metals']
[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 = true
[shlvl]
threshold = 2
format = '[$symbol$shlvl]($style) '
symbol = '↕️ '
repeat = false
style = 'bold yellow'
disabled = true
[singularity]
symbol = ''
format = '[$symbol\[$env\]]($style) '
style = 'blue bold dimmed'
disabled = true
[status]
format = '[status](bright-red): [$status]($style) '
symbol = '✖'
not_executable_symbol = '🚫'
not_found_symbol = '🔍'
sigint_symbol = '🧱'
signal_symbol = '⚡'
style = 'bold red'
map_symbol = false
recognize_signal_code = true
disabled = false
[swift]
format = 'via [$symbol($version )]($style)'
symbol = '🐦 '
style = 'bold 202'
disabled = true
detect_extensions = ['swift']
detect_files = ['Package.swift']
detect_folders = []
[terraform]
format = 'via [$symbol$workspace]($style) '
symbol = '💠 '
style = 'bold 105'
disabled = true
detect_extensions = [
'tf',
'hcl',
]
detect_files = []
detect_folders = ['.terraform']
[time]
format = '[$time]($style)'
style = 'bold fg:202'
use_12hr = false
disabled = false
utc_time_offset = 'local'
time_range = '-'
time_format = '%T %d/%m'
[username]
format = '[$user]($style)'
style_root = 'fg:190 bold'
style_user = 'fg:226 bold'
show_always = true
disabled = false
[vagrant]
format = 'via [$symbol($version )]($style)'
symbol = '⍱ '
style = 'cyan bold'
disabled = true
detect_extensions = []
detect_files = ['Vagrantfile']
detect_folders = []
[zig]
format = 'via [$symbol($version )]($style)'
symbol = '↯ '
style = 'bold yellow'
disabled = true
detect_extensions = ['zig']
detect_files = []
detect_folders = []
[custom]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment