Skip to content

Instantly share code, notes, and snippets.

@byBretema
Created September 15, 2023 13:46
Show Gist options
  • Save byBretema/e87e1d98a2b6d1aaf244c910a0d3d464 to your computer and use it in GitHub Desktop.
Save byBretema/e87e1d98a2b6d1aaf244c910a0d3d464 to your computer and use it in GitHub Desktop.
format = """
$time\
[ · ](fg:#FFF)\
$directory\
$git_branch $git_status\
$docker_context\
$cmd_duration\
[ · ](fg:#FFF)\
$character\
"""
# Disable the blank line at the start of the prompt
add_newline = false
# # Replace the '❯' symbol in the prompt with '➜'
[character]
format = "$symbol "
error_symbol = '[❯](bold red)' # The 'success_symbol' segment is being set to '➜' with the color 'bold green'
success_symbol = '[❯](bold green)' # The 'success_symbol' segment is being set to '➜' with the color 'bold green'
[directory]
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]
"~/OneDrive" = "🪟:☁️ "
"~/iCloudDrive" = "🍎:☁️ "
"Documents" = "📄 "
"Downloads" = "📥 "
"Music" = "🎵 "
"Pictures" = "🖼️ "
"Videos" = "📽️ "
[docker_context]
symbol = "🐳 "
format = '[[ · ](fg:#FFF)$symbol $context]($style) $path'
[git_branch]
symbol = "🐙"
format = '[[ · ](fg:#FFF)$symbol $branch]($style)'
[git_status]
format = '[$all_status$ahead_behind]($style)'
[time]
disabled = false
time_format = "%R" # Hour:Minute Format
format = '[⏳ $time]($style)'
[cmd_duration]
format = '[[ · ](fg:#FFF)⏱ $duration]($style)'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment