Last active
May 15, 2023 12:45
-
-
Save thecodermehedi/1ec029fa64b1f19a80d3c6f84ffe45f1 to your computer and use it in GitHub Desktop.
Starship Prompt Customization
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## FIRST LINE/ROW: Info & Status | |
# First param ─┌ | |
[username] | |
format = " [╭─$user]($style)@" | |
style_user = "bold green" | |
style_root = "bold red" | |
show_always = true | |
# Second param | |
[hostname] | |
format = "[$hostname]($style) in " | |
style = "bold blue" | |
trim_at = "-" | |
ssh_only = false | |
disabled = false | |
# Third param | |
[directory] | |
style = "purple" | |
truncation_length = 0 | |
truncate_to_repo = true | |
truncation_symbol = "repo: " | |
[directory.substitutions] | |
"Documents" = "🗎 " | |
"Downloads" = " " | |
"Music" = " " | |
"Pictures" = " " | |
# Before all the version info (python, nodejs, php, etc.) | |
[git_branch] | |
symbol = " " | |
[git_status] | |
style = "white" | |
ahead = "⇡${count}" | |
diverged = "⇕⇡${ahead_count}⇣${behind_count}" | |
behind = "⇣${count}" | |
deleted = "x" | |
# Last param in the first line/row | |
[cmd_duration] | |
min_time = 1 | |
format = "took [$duration]($style)" | |
disabled = false | |
## SECOND LINE/ROW: Prompt | |
# Somethere at the beginning | |
[battery] | |
full_symbol = " " | |
charging_symbol = " " | |
discharging_symbol = " " | |
disabled = true | |
[[battery.display]] # "bold red" style when capacity is between 0% and 10% | |
threshold = 15 | |
style = "bold red" | |
disabled = true | |
[[battery.display]] # "bold yellow" style when capacity is between 10% and 30% | |
threshold = 50 | |
style = "bold yellow" | |
disabled = true | |
[[battery.display]] # "bold green" style when capacity is between 10% and 30% | |
threshold = 80 | |
style = "bold green" | |
disabled = true | |
# Prompt: optional param 1 | |
[time] | |
format = " 🕙 $time($style)\n" | |
time_format = "%T" | |
style = "bright-white" | |
disabled = true | |
# Prompt: param 2 └─ | |
[character] | |
success_symbol = " [╰─❯](bold green)" | |
error_symbol = " [×](bold red)" | |
# SYMBOLS | |
[status] | |
symbol = "🔴" | |
format = '[\[$symbol$status_common_meaning$status_signal_name$status_maybe_int\]]($style)' | |
map_symbol = true | |
disabled = false | |
[aws] | |
symbol = " " | |
[conda] | |
symbol = " " | |
[dart] | |
symbol = " " | |
#[directory] | |
#read_only = " " | |
[docker_context] | |
symbol = " " | |
format = "via [$symbol$context]($style) " | |
style = "blue bold" | |
only_with_files = true | |
detect_files = ["docker-compose.yml", "docker-compose.yaml", "Dockerfile"] | |
detect_folders = [] | |
disabled = false | |
[elixir] | |
symbol = " " | |
[elm] | |
symbol = " " | |
[golang] | |
symbol = " " | |
[hg_branch] | |
symbol = " " | |
[java] | |
symbol = " " | |
[julia] | |
symbol = " " | |
[haskell] | |
symbol = "λ " | |
[memory_usage] | |
symbol = " " | |
[nim] | |
symbol = " " | |
[nix_shell] | |
symbol = " " | |
[package] | |
symbol = " " | |
[perl] | |
symbol = " " | |
[php] | |
symbol = " " | |
[python] | |
symbol = " " | |
#pyenv_version_name = true | |
format = 'via [${symbol}python (${version} )(\($virtualenv\) )]($style)' | |
style = "bold yellow" | |
pyenv_prefix = "venv " | |
python_binary = ["./venv/bin/python", "python", "python3", "python2"] | |
detect_extensions = ["py"] | |
version_format = "v${raw}" | |
[ruby] | |
symbol = " " | |
[rust] | |
symbol = " " | |
[scala] | |
symbol = " " | |
[shlvl] | |
symbol = " " | |
[swift] | |
symbol = "ﯣ " | |
[nodejs] | |
symbol = "" | |
format = "via [$symbol $version](bold green) " | |
detect_files = ["package.json", ".node-version"] | |
detect_folders = ["node_modules"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment