Skip to content

Instantly share code, notes, and snippets.

@hstemplewski
Last active May 27, 2022 13:12
Show Gist options
  • Save hstemplewski/fe40558a7a8b5959706afa07362b0634 to your computer and use it in GitHub Desktop.
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)
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