Last active
December 16, 2022 14:25
-
-
Save ckbrewer33/b9b2facbc315c5e1407e63c5d4f24bc9 to your computer and use it in GitHub Desktop.
Custom Starship Prompt Config
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 is my custom starship prompt config. | |
# It is based on the "pastel-powerline" preset found here: https://starship.rs/presets/pastel-powerline.html | |
# Nerd Font icons required - my favorite is Hack Nerd Font, found here: https://github.com/ryanoasis/nerd-fonts/releases/download/v2.2.2/Hack.zip | |
# | |
format = """ | |
[](#388e3c)\ | |
$username\ | |
[](bg:#194a7a fg:#388e3c)\ | |
$directory\ | |
[](fg:#194a7a bg:#476f95)\ | |
$git_branch\ | |
$git_status\ | |
[](fg:#476f95 bg:#7593af)\ | |
$c\ | |
$elixir\ | |
$elm\ | |
$golang\ | |
$haskell\ | |
$java\ | |
$julia\ | |
$nodejs\ | |
$nim\ | |
$rust\ | |
$scala\ | |
[](fg:#7593af bg:#06969A)\ | |
$docker_context\ | |
[](fg:#06969A bg:#33658A)\ | |
$time\ | |
[ ](fg:#33658A)\ | |
\n$character""" | |
# 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 = "bg:#388e3c fg:#FFFFFF" | |
style_root = "bg:#388e3c fg:#FFFFFF" | |
format = '[$user ]($style)' | |
[directory] | |
style = "bg:#194a7a fg:#FFFFFF" | |
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" = " " | |
# 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 " = " " | |
[c] | |
symbol = " " | |
style = "bg:#7593af fg:#FFFFFF" | |
format = '[ $symbol ($version) ]($style)' | |
[docker_context] | |
symbol = " " | |
style = "bg:#06969A" | |
format = '[ $symbol $context ]($style) $path' | |
[elixir] | |
symbol = " " | |
style = "bg:#7593af fg:#FFFFFF" | |
format = '[ $symbol ($version) ]($style)' | |
[elm] | |
symbol = " " | |
style = "bg:#7593af fg:#FFFFFF" | |
format = '[ $symbol ($version) ]($style)' | |
[git_branch] | |
symbol = "" | |
style = "bg:#476f95 fg:#FFFFFF" | |
format = '[ $symbol $branch ]($style)' | |
[git_status] | |
style = "bg:#476f95 fg:#FFFFFF" | |
format = '[$all_status$ahead_behind ]($style)' | |
[golang] | |
symbol = " " | |
style = "bg:#7593af fg:#FFFFFF" | |
format = '[ $symbol ($version) ]($style)' | |
[haskell] | |
symbol = " " | |
style = "bg:#7593af fg:#FFFFFF" | |
format = '[ $symbol ($version) ]($style)' | |
[java] | |
symbol = " " | |
style = "bg:#7593af fg:#FFFFFF" | |
format = '[ $symbol ($version) ]($style)' | |
[julia] | |
symbol = " " | |
style = "bg:#7593af fg:#FFFFFF" | |
format = '[ $symbol ($version) ]($style)' | |
[nodejs] | |
symbol = "" | |
style = "bg:#7593af fg:#FFFFFF" | |
format = '[ $symbol ($version) ]($style)' | |
[nim] | |
symbol = " " | |
style = "bg:#7593af fg:#FFFFFF" | |
format = '[ $symbol ($version) ]($style)' | |
[rust] | |
symbol = "" | |
style = "bg:#7593af fg:#FFFFFF" | |
format = '[ $symbol ($version) ]($style)' | |
[scala] | |
symbol = " " | |
style = "bg:#7593af fg:#FFFFFF" | |
format = '[ $symbol ($version) ]($style)' | |
[time] | |
disabled = false | |
time_format = "%R" # Hour:Minute Format | |
style = "bg:#33658A fg:#FFFFFF" | |
format = '[ $time ]($style)' | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment