Last active
November 14, 2021 17:28
-
-
Save M8torr/31e9e06ddfb45635c91854d89d3e50e4 to your computer and use it in GitHub Desktop.
Starship - Powerline style preset - 2 lines
This file contains 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
# This Powerline style preset is a combination of few presets available in https://starship.rs | |
# and some other preset find on the web. I cannot recall from exactly where to give proper credit to the original authors. | |
#add_newline = false | |
#command_timeout = 10000 | |
# Order of modules on prompt | |
format = """[](bg:#464347 fg:#AFD700)\ | |
$username\ | |
$hostname\ | |
$directory\ | |
$kubernetes\ | |
$docker_context\ | |
(↓ Source control - for right side ↓)\ | |
$git_branch\ | |
$git_commit\ | |
$git_status\ | |
$git_state\ | |
(↑ Source control - for right side ↑)\ | |
(↓ Toolchain version modules ↓)\ | |
$dotnet\ | |
$golang\ | |
$java\ | |
$nodejs\ | |
$perl\ | |
$php\ | |
$python\ | |
$ruby\ | |
$rust\ | |
$swift\ | |
$terraform\ | |
(↑ Toolchain version modules ↑)\ | |
(↓ Package modules ↓)\ | |
$package\ | |
$cmake\ | |
(↑ Package modules ↑)\ | |
$memory_usage\ | |
$env_var\ | |
${custom.line-end}\ | |
(↑ above input line ↑)\ | |
$line_break\ | |
(↓ on input line ↓)\ | |
$battery\ | |
$time\ | |
$shell\ | |
$shlvl\ | |
$jobs\ | |
$cmd_duration\ | |
$status\ | |
$character\ | |
""" | |
[username] | |
show_always = true | |
style_root = "bold bg:#3388FF fg:#FF5511" | |
style_user = "bg:#3388FF fg:#EEEEEE" | |
format = "[[](bg:#3388FF fg:#464347)$user[](bg:#464347 fg:#3388FF)]($style)" | |
[hostname] | |
style = "bg:#AFD700 fg:#111111" | |
# trim_at = '.' | |
format = '[[](bg:#AFD700 fg:#464347)($style)$hostname[](bg:#464347 fg:#AFD700)]($style)' | |
[directory] | |
style = "bg:#6F6A70 fg:#EEEEEE" | |
read_only = '' | |
read_only_style = "bg:#ff3322 fg:#EEEEEE" | |
truncation_length = 4 | |
truncate_to_repo = true | |
format = '([[](bg:#ff3322 fg:#464347)$read_only[](bg:#464347 fg:#ff3322)]($read_only_style))[[](bg:#6F6A70 fg:#464347)$path[](bg:#464347 fg:#6F6A70)]($style)' | |
[memory_usage] | |
disabled = true | |
symbol = ' ' | |
style = "bg:#BBBBBB fg:#111111" | |
threshold = 75 | |
[custom.line-end] | |
description = "A character (arrow) to end the first line of the prompt (bash)." | |
style = "fg:#464347" | |
when = "true" | |
symbol = "" | |
shell = "sh" | |
[line_break] | |
disabled = false | |
[battery] | |
disabled = true | |
full_symbol = ' ' | |
charging_symbol = ' ' | |
discharging_symbol = ' ' | |
unknown_symbol = ' ' | |
empty_symbol = ' ' | |
format = '$symbol$percentage ' | |
[[battery.display]] | |
threshold = 10 | |
style = "bold bg:#FF5511 fg:#EEEEEE" | |
[[battery.display]] | |
threshold = 30 | |
style = "bg:#FF5511 fg:#111111" | |
[shlvl] | |
symbol = '' | |
style = "bold bg:#464347 fg:#FBDE2D" | |
threshold = 2 | |
format = '[$symbol$shlvl]($style)' | |
[jobs] | |
symbol = ' ' | |
style = "bold bg:#464347 fg:#FFA200" | |
format = '[$symbol$number]($style)' | |
[cmd_duration] | |
min_time = 2000 | |
show_milliseconds = true | |
show_notifications = false | |
min_time_to_notify = 45000 | |
format = '[祥 $duration]($style)' | |
[status] | |
disabled = true | |
symbol = '' | |
format = '[$symbol$status]($style)' | |
[time] | |
disabled = false | |
use_12hr = false | |
time_format = '%T' | |
utc_time_offset = 'local' | |
format = '$time ' | |
[shell] | |
bash_indicator = '' | |
zsh_indicator = 'zsh' | |
fish_indicator = '' | |
powershell_indicator = '' | |
unknown_indicator = '?sh' | |
disabled = false | |
[cmake] | |
symbol = '喝 ' | |
style = "bg:#064F8D fg:#EEEEEE" | |
format = '[[](bg:#064F8D fg:#464347)$symbol$version[](bg:#464347 fg:#064F8D)]($style)' | |
[docker_context] | |
symbol = ' ' | |
style = "bg:#3A91DC fg:#EEEEEE" | |
only_with_files = true | |
format = '[[](bg:#3A91DC fg:#464347)$symbol$context[](bg:#464347 fg:#3A91DC)]($style)' | |
[dotnet] | |
symbol = ' ' | |
style = "bg:#4A35CC fg:#EEEEEE" | |
heuristic = true | |
format = '[[](bg:#4A35CC fg:#464347)$symbol$version( 什$tfm)[](bg:#464347 fg:#4A35CC)]($style)' | |
[env_var] | |
disabled = true | |
symbol = ' ' | |
style = "bg:#6f6a70 fg:#EEEEEE" | |
variable = '0' | |
default = 'fish' | |
format = '([[](bg:#6f6a70 fg:#464347)$symbol$env_value[](bg:#464347 fg:#6f6a70)]($style))' | |
[git_branch] | |
symbol = ' ' | |
style = "bg:#96ab5f fg:#111111" | |
format = '[[](bg:#96ab5f fg:#464347)$symbol$branch[](bg:#464347 fg:#96ab5f)]($style)' | |
[git_commit] | |
style = "bg:#E58F73 fg:#111111" | |
commit_hash_length = 4 | |
format = '[[](bg:#E58F73 fg:#464347)#$hash[](bg:#464347 fg:#E58F73)]($style)' | |
[git_state] | |
style = "bg:#E0B25D fg:111111" | |
rebase = 'rebasing' | |
merge = 'merging' | |
revert = 'reverting' | |
cherry_pick = ' picking' | |
bisect = 'bisecting' | |
am = "am'ing" | |
am_or_rebase = "am/rebase" | |
format = '\([[](bg:#E0B25D fg:#464347)$state($progress_current/$progress_total)[](bg:#464347 fg:#E0B25D)]($style)\)' | |
[git_status] | |
#disabled = true | |
style = "bg:#E0B25D fg:#000000" | |
stashed = " ${count}" | |
ahead = "ﲗ ${count}" | |
behind = "ﲔ ${count}" | |
diverged = "李 ${ahead_count} ${behind_count}" | |
conflicted = "${count}" | |
deleted = " ${count}" | |
renamed = "${count}" | |
modified = " 凜${count}" | |
staged = " ${count}" | |
untracked = " ${count}" | |
format = "([[](bg:#E0B25D fg:#464347)$stashed$staged$modified$renamed$untracked$deleted$conflicted$ahead_behind[](bg:#464347 fg:#E0B25D)]($style))" | |
[golang] | |
# disabled = true | |
symbol = " " | |
style = "bg:#7FD5EA fg:#111111" | |
format = "[[](bg:#7FD5EA fg:#464347)$symbol$version[](bg:#464347 fg:#7FD5EA)]($style)" | |
[java] | |
# disabled = true | |
symbol = " " | |
style = "bg:#ED8B00 fg:#111111" | |
format = "[[](bg:#ED8B00 fg:#464347)$symbol$version[](bg:#464347 fg:#ED8B00)]($style)" | |
[kubernetes] | |
#disabled = true | |
symbol = "☸︎" | |
style = "bg:#3371E3 fg:#EEEEEE" | |
format = '[[](bg:#3371E3 fg:#464347)$symbol$context(\($namespace\))[](bg:#464347 fg:#3371E3)]($style)' | |
[nodejs] | |
# disabled = true | |
symbol = " " | |
style = "bg:#005F00 fg:#EEEEEE" | |
format = "[[](bg:#005F00 fg:#464347)$symbol$version[](bg:#464347 fg:#005F00)]($style)" | |
[package] | |
# disabled = true | |
symbol = " " | |
style = "bg:#6F6A70 fg:#EEEEEE" | |
display_private = false | |
format = "[[](bg:#6F6A70 fg:#464347)$symbol$version[](bg:#464347 fg:#6F6A70)]($style)" | |
[php] | |
# disabled = true | |
symbol = " " | |
style = "bg:#8892BF fg:#EEEEEE" | |
format = "[[](bg:#8892BF fg:#464347)$symbol$version[](bg:#464347 fg:#8892BF)]($style)" | |
[python] | |
# disabled = true | |
symbol = " " | |
style = "bg:#EBD45B fg:#111111" | |
# pyenv_version_name = true | |
pyenv_prefix = "pyenv " | |
python_binary = "python3" | |
format = '[[](bg:#EBD45B fg:#464347)$symbol$pyenv_prefix$version(\($virtualenv\))[](bg:#464347 fg:#EBD45B)]($style)' | |
[ruby] | |
# disabled = true | |
symbol = " " | |
# symbol = " " # alternate | |
style = "bg:#CC342D fg:#EEEEEE" | |
format = "[[](bg:#CC342D fg:#464347)$symbol$version[](bg:#464347 fg:#CC342D)]($style)" | |
[rust] | |
# disabled = true | |
symbol = " " | |
# symbol = " " # alternate | |
style = "bg:#A72145 fg:#EEEEEE" | |
format = "[[](bg:#A72145 fg:#464347)$symbol$version[](bg:#464347 fg:#A72145)]($style)" | |
[swift] | |
# disabled = true | |
symbol = "ﯣ " | |
style = "bg:#F05138 fg:#EEEEEE" | |
format = "[[](bg:#F05138 fg:#464347)$symbol$version[](bg:#464347 fg:#F05138)]($style)" | |
[terraform] | |
# disabled = true | |
symbol = "行 " | |
style = "bg:#5836CD fg:#EEEEEE" | |
format = '[[](bg:#5836CD fg:#464347)$symbol$workspace[](bg:#464347 fg:#5836CD)]($style)' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment