Last active
May 27, 2022 13:12
-
-
Save hstemplewski/fe40558a7a8b5959706afa07362b0634 to your computer and use it in GitHub Desktop.
My prompt for warp using starship (require on of https://www.nerdfonts.com/font-downloads)
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
format = """ | |
$username$sudo\ | |
[(| $directory)](fg:#DA627D)\ | |
[(| $git_branch$git_status$git_state$git_state)](fg:#FCA17D)\ | |
[(| $nodejs$rust$package$python)](fg:#86BBD8)\ | |
[(| $docker_context)](fg:#86BBD8)\ | |
[(| $memory_usage$time)](fg:#33658A)\ | |
[γ](fg:#33658A) | |
""" | |
# Disable the blank line at the start of the prompt | |
# add_newline = false | |
# You can also replace your username with a neat symbol like ο to save some space | |
[username] | |
show_always = true | |
style_user = "fg:#F4EAF3" | |
style_root = "fg:#9A348E" | |
format = '[ π» $user ]($style)' | |
[sudo] | |
disabled = false | |
[directory] | |
style = "fg:#DA627D" | |
format = "[π $path ]($style)" | |
truncation_length = 3 | |
truncation_symbol = "β¦/" | |
# Here is how you can shorten some long paths by text replacement | |
# similar to mapped_locations in Oh My Posh: | |
[directory.substitutions] | |
"Documents" = "ο" | |
"Downloads" = "ο " | |
"Music" = "π΅ " | |
"Pictures" = "πΌ " | |
"projects" = "π§°" | |
"learn" = "π" | |
# Keep in mind that the order matters. For example: | |
# "Important Documents" = " οοͺ " | |
# will not be replaced, because "Documents" was already substituted before. | |
# So either put "Important Documents" before "Documents" or use the substituted version: | |
# "Important ο " = " οοͺ " | |
[git_branch] | |
symbol = "ο" | |
style = "fg:#FCA17D" | |
format = '[[$symbol $branch ](fg:#FCA17D)]($style)' | |
[git_status] | |
style = "fg:#FCA17D" | |
format = '[[($all_status$ahead_behind )](fg:#FCA17D)]($style)' | |
[package] | |
style = "fg:#86BBD8 bold" | |
format = "[$symbol$version]($style) " | |
[nodejs] | |
symbol = "ξ" | |
style = "fg:#86BBD8" | |
format = '[[$symbol ($version) ](fg:#86BBD8)]($style)' | |
detect_extensions = ["js", "mjs", "cjs", "ts", "mts", "cts", "jsx", "tsx"] | |
[rust] | |
symbol = "ξ¨" | |
style = "fg:#86BBD8" | |
format = '[[$symbol ($version) ](fg:#86BBD8)]($style)' | |
[python] | |
symbol = "π" | |
style = "fg:#86BBD8" | |
format = "[$symbol$pyenv_prefix $version $virtualenv]($style)" | |
[docker_context] | |
symbol = "ο" | |
style = "fg:#86BBD8" | |
format = '[[$symbol ($context) ](fg:#86BBD8)]($style)' | |
[time] | |
disabled = false | |
time_format = "%R" # Hour:Minute Format | |
style = "fg:#33658A" | |
format = '[[π° $time ](fg:#33658A)]($style)' | |
[memory_usage] | |
symbol = "π" | |
threshold = 0 | |
disabled = false | |
style = "fg:#33658A" | |
format = '[[$symbol $ram_pct ](fg:#33658A)]($style)' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment