87 lines
2 KiB
TOML
87 lines
2 KiB
TOML
format = """
|
|
[┌─](bold green) ☠️ \
|
|
[](color_orange)\
|
|
$username$hostname\
|
|
$os\
|
|
[](bg:color_blue fg:color_orange)\
|
|
$time\
|
|
[](bg:color_green fg:color_blue)\
|
|
$directory\
|
|
[](fg:color_green bg:color_pink)\
|
|
$git_branch\
|
|
$git_status\
|
|
[](fg:color_pink bg:color_red)\
|
|
$python\
|
|
[](fg:color_red)
|
|
[└─ ](bold green)
|
|
"""
|
|
|
|
# Disable the blank line at the start of the prompt
|
|
add_newline = false
|
|
|
|
palette = 'default'
|
|
|
|
[palettes.default]
|
|
color_blue = '#458588'
|
|
color_green = '#98971a'
|
|
color_orange = '#d65d0e'
|
|
color_pink = '#b16286'
|
|
color_red = '#cc241d'
|
|
|
|
[python]
|
|
style = "bg:color_red"
|
|
format = '[${symbol}${pyenv_prefix}(${version} )(\($virtualenv\) )]($style)'
|
|
|
|
# You can also replace your username with a neat symbol like or disable this
|
|
# and use the os module below
|
|
[username]
|
|
show_always = true
|
|
style_user = "bg:color_orange"
|
|
style_root = "bg:color_orange"
|
|
format = '[$user]($style)'
|
|
disabled = false
|
|
|
|
[hostname]
|
|
format = '[@$hostname ]($style)'
|
|
style = "bg:color_orange"
|
|
ssh_only = false
|
|
|
|
# An alternative to the username module which displays a symbol that
|
|
# represents the current operating system
|
|
[os]
|
|
style = "bg:color_red"
|
|
disabled = true # Disabled by default
|
|
|
|
[directory]
|
|
style = "bg:color_green"
|
|
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 " = " "
|
|
|
|
[git_branch]
|
|
symbol = ""
|
|
style = "bg:color_pink"
|
|
format = '[ $symbol $branch ]($style)'
|
|
|
|
[git_status]
|
|
style = "bg:color_pink"
|
|
format = '[$all_status$ahead_behind ]($style)'
|
|
|
|
[time]
|
|
time_format = "%T"
|
|
style = "bg:color_blue"
|
|
format = '[ $time ]($style)'
|
|
disabled = false
|