converted to oh my posh
This commit is contained in:
152
.config/ohmyposh/lkraven.toml
Normal file
152
.config/ohmyposh/lkraven.toml
Normal file
@@ -0,0 +1,152 @@
|
||||
#:schema https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json
|
||||
console_title_template = '{{if .Root}}(Admin){{end}} {{.PWD}}'
|
||||
version = 2
|
||||
|
||||
[palette]
|
||||
black = '#21222C'
|
||||
blue = '#BD93F9'
|
||||
bright_black = '#6272A4'
|
||||
bright_blue = '#D6ACFF'
|
||||
bright_cyan = '#A4FFFF'
|
||||
bright_green = '#69FF94'
|
||||
bright_grey = '#7483af'
|
||||
bright_magenta = '#FF92DF'
|
||||
bright_red = '#FF6E6E'
|
||||
bright_white = '#FFFFFF'
|
||||
bright_yellow = '#FFFFA5'
|
||||
cyan = '#8BE9FD'
|
||||
dim_black = '#384261'
|
||||
dim_blue = '#7000e0'
|
||||
dim_cyan = '#418e9f'
|
||||
dim_green = '#00a830'
|
||||
dim_grey = '#3f4b6e'
|
||||
green = '#50FA7B'
|
||||
grey = '#576898'
|
||||
magenta = '#FF79C6'
|
||||
red = '#FF5555'
|
||||
white = '#F8F8F2'
|
||||
yellow = '#F1FA8C'
|
||||
|
||||
[[blocks]]
|
||||
alignment = 'left'
|
||||
type = 'prompt'
|
||||
|
||||
[[blocks.segments]]
|
||||
type = 'os'
|
||||
style = 'plain'
|
||||
foreground = 'p:cyan'
|
||||
template = '{{.Icon}} '
|
||||
|
||||
[[blocks.segments]]
|
||||
foreground = 'p:bright_black'
|
||||
style = 'plain'
|
||||
template = '{{ .Path }} {{ if not .Writable}}<p:bright_red></> {{end}}'
|
||||
type = 'path'
|
||||
|
||||
[blocks.segments.properties]
|
||||
style = 'agnoster'
|
||||
|
||||
[[blocks]]
|
||||
alignment = 'left'
|
||||
type = 'prompt'
|
||||
|
||||
[[blocks.segments]]
|
||||
type='python'
|
||||
foreground = 'p:blue'
|
||||
background = "p:dim_black"
|
||||
leading_diamond = ""
|
||||
style = "diamond"
|
||||
trailing_diamond = " "
|
||||
template = " {{ .Venv }} "
|
||||
|
||||
[blocks.segments.properties]
|
||||
display_default = false
|
||||
|
||||
[[blocks.segments]]
|
||||
foreground = 'p:cyan'
|
||||
background = "p:dim_black"
|
||||
leading_diamond = ""
|
||||
style = "diamond"
|
||||
trailing_diamond = ""
|
||||
template = " {{ .UpstreamIcon }}{{ .HEAD }}{{if .BranchStatus }} {{ .BranchStatus }}{{ end }}{{ if .Working.Changed }}<p:yellow> </>{{ .Working.String }}{{ end }}{{ if and (.Working.Changed) (.Staging.Changed) }} |{{ end }}{{ if .Staging.Changed }} {{ .Staging.String }}{{ end }}{{ if gt .StashCount 0 }} {{ .StashCount }}{{ end }} "
|
||||
type = 'git'
|
||||
|
||||
[blocks.segments.properties]
|
||||
branch_icon = ' '
|
||||
commit_icon = ' '
|
||||
merge_icon = ' '
|
||||
no_commits_icon = ' '
|
||||
rebase_icon = ' '
|
||||
revert_icon = ' '
|
||||
tag_icon = ' '
|
||||
fetch_stash_count = true
|
||||
fetch_status = true
|
||||
fetch_upstream_icon = true
|
||||
|
||||
[[blocks]]
|
||||
type = "prompt"
|
||||
alignment = "right"
|
||||
|
||||
[[blocks.segments]]
|
||||
foreground = 'p:green'
|
||||
style = 'plain'
|
||||
template = '{{ .FormattedMs }}'
|
||||
type = 'executiontime'
|
||||
|
||||
[blocks.segments.properties]
|
||||
style = 'austin'
|
||||
|
||||
[[blocks.segments]]
|
||||
type = "time"
|
||||
style = "plain"
|
||||
foreground = "p:grey"
|
||||
|
||||
[blocks.segments.properties]
|
||||
time_format = "3:04:05pm"
|
||||
|
||||
[[blocks.segments]]
|
||||
type = "session"
|
||||
style = "plain"
|
||||
foreground = "p:grey"
|
||||
template = "{{.UserName}}"
|
||||
|
||||
[[blocks.segments]]
|
||||
type = "session"
|
||||
style = "plain"
|
||||
foreground = "p:cyan"
|
||||
template = " {{ if .SSHSession }} {{ else }}@{{ end }} "
|
||||
|
||||
[[blocks.segments]]
|
||||
type = "session"
|
||||
style = "plain"
|
||||
foreground = "p:blue"
|
||||
template = "{{.HostName}}"
|
||||
|
||||
[[blocks]]
|
||||
type = 'prompt'
|
||||
alignment = 'left'
|
||||
newline = true
|
||||
|
||||
[[blocks.segments]]
|
||||
type = 'text'
|
||||
style = 'plain'
|
||||
foreground_templates = [
|
||||
"{{if gt .Code 0}}p:red{{end}}",
|
||||
"{{if eq .Code 0}}p:bright_green{{end}}",
|
||||
]
|
||||
background = 'transparent'
|
||||
template = '❯ '
|
||||
|
||||
[transient_prompt]
|
||||
foreground_templates = [
|
||||
"{{if gt .Code 0}}p:red{{end}}",
|
||||
"{{if eq .Code 0}}p:bright_green{{end}}",
|
||||
]
|
||||
background = 'transparent'
|
||||
template = '❯ '
|
||||
|
||||
[secondary_prompt]
|
||||
foreground = 'p:bright_green'
|
||||
background = 'transparent'
|
||||
template = '❯❯ '
|
||||
|
||||
Reference in New Issue
Block a user