124 lines
2.4 KiB
TOML
124 lines
2.4 KiB
TOML
"$schema" = "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json"
|
||
console_title_template = "{{if .Root}}[root] {{end}}{{.Shell}} in <{{.Folder}}>"
|
||
final_space = true
|
||
version = 2
|
||
|
||
[palette]
|
||
white = "#f7f7f7"
|
||
black = "#111111"
|
||
|
||
[transient_prompt]
|
||
foreground_templates = [
|
||
"{{if gt .Code 0}}red{{end}}",
|
||
"{{if eq .Code 0}}magenta{{end}}",
|
||
]
|
||
background = 'transparent'
|
||
template = '❯ '
|
||
|
||
[[blocks]]
|
||
type = "prompt"
|
||
alignment = "left"
|
||
newline = true
|
||
|
||
[[blocks.segments]]
|
||
background = "transparent"
|
||
foreground = "p:white"
|
||
style = "plain"
|
||
template = "┌"
|
||
type = "text"
|
||
|
||
[[blocks.segments]]
|
||
background = "#464646"
|
||
foreground = "p:white"
|
||
style = "plain"
|
||
template = " {{.Icon}}{{if .WSL}} (WSL){{end}}⠀"
|
||
type = "os"
|
||
|
||
[blocks.segments.properties]
|
||
windows = ""
|
||
linux = ""
|
||
ubuntu = ""
|
||
macos = ""
|
||
|
||
[[blocks.segments]]
|
||
background = "p:white"
|
||
foreground = "p:black"
|
||
style = "plain"
|
||
template = " {{.Name}}⠀"
|
||
type = "shell"
|
||
|
||
[[blocks.segments]]
|
||
background = "#ffe093"
|
||
foreground = "p:black"
|
||
style = "plain"
|
||
template = " {{.HostName}}{{.UserName}}⠀"
|
||
type = "session"
|
||
|
||
[[blocks.segments]]
|
||
background = "#ffffd6"
|
||
foreground = "p:black"
|
||
style = "plain"
|
||
template = "{{.HEAD}}⠀"
|
||
type = "git"
|
||
|
||
[blocks.segments.properties]
|
||
branch_icon = " "
|
||
|
||
[[blocks]]
|
||
type = "prompt"
|
||
alignment = "right"
|
||
|
||
[[blocks.segments]]
|
||
background = "transparent"
|
||
foreground = "#b3ffde"
|
||
style = "plain"
|
||
template = "{{.FormattedMs}}"
|
||
type = "executiontime"
|
||
|
||
[blocks.segments.properties]
|
||
style = "austin"
|
||
threshold = 0
|
||
|
||
[[blocks.segments]]
|
||
background = "transparent"
|
||
foreground = "#b3ffde"
|
||
style = "plain"
|
||
template = "<p:white> · </>{{.CurrentDate | date .Format}}"
|
||
type = "time"
|
||
|
||
[blocks.segments.properties]
|
||
time_format = "02/01/06 15:04"
|
||
|
||
[[blocks]]
|
||
type = "prompt"
|
||
alignment = "left"
|
||
newline = true
|
||
|
||
[[blocks.segments]]
|
||
background = "transparent"
|
||
foreground = "p:white"
|
||
style = "plain"
|
||
template = "<p:white>└</><#93d0ff>[</> {{.Path}} <#93d0ff>]</>"
|
||
type = "path"
|
||
|
||
[blocks.segments.properties]
|
||
folder_icon = ""
|
||
folder_separator_template = "<#93d0ff> » </>"
|
||
home_icon = ""
|
||
style = "agnoster"
|
||
|
||
[[blocks]]
|
||
type = "prompt"
|
||
alignment = "left"
|
||
newline = true
|
||
|
||
[[blocks.segments]]
|
||
background = "transparent"
|
||
foreground = "#81ff91"
|
||
foreground_templates = [ "{{if gt .Code 0}}#ff3030{{end}}" ]
|
||
style = "plain"
|
||
template = "❯"
|
||
type = "status"
|
||
|
||
[blocks.segments.properties]
|
||
always_enabled = true
|