feat: add oh my posh, remove roundy
This commit is contained in:
parent
c0d98e71b0
commit
3cb592932b
3 changed files with 61 additions and 2 deletions
55
.config/ohmyposh/config.toml
Normal file
55
.config/ohmyposh/config.toml
Normal file
|
@ -0,0 +1,55 @@
|
|||
#:schema https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json
|
||||
|
||||
version = 2
|
||||
final_space = true
|
||||
console_title_template = '{{ .PWD }}'
|
||||
|
||||
[[blocks]]
|
||||
type = 'prompt'
|
||||
alignment = 'left'
|
||||
newline = true
|
||||
|
||||
[[blocks.segments]]
|
||||
type = 'path'
|
||||
style = 'plain'
|
||||
background = 'transparent'
|
||||
foreground = 'blue'
|
||||
template = '{{ .Path }}'
|
||||
|
||||
[blocks.segments.properties]
|
||||
style = 'full'
|
||||
|
||||
[[blocks.segments]]
|
||||
type = 'git'
|
||||
style = 'plain'
|
||||
background = 'transparent'
|
||||
foreground = '#2ac3de'
|
||||
template = ' {{ .HEAD }}{{ if or (.Working.Changed) (.Staging.Changed) }}*{{ end }} <cyan>{{ if gt .Behind 0 }}⇣{{ .Behind }}{{ end }}{{ if gt .Ahead 0 }}⇡{{ .Ahead }}{{ end }}</>'
|
||||
|
||||
[blocks.segments.properties]
|
||||
branch_icon = ''
|
||||
commit_icon = '@'
|
||||
fetch_status = true
|
||||
|
||||
[[blocks]]
|
||||
type = 'prompt'
|
||||
alignment = 'left'
|
||||
newline = true
|
||||
|
||||
[[blocks.segments]]
|
||||
type = 'text'
|
||||
style = 'plain'
|
||||
foreground_templates = [
|
||||
'{{if gt .Code 0}}red{{end}}',
|
||||
'{{ if eq .Code 0}}magenta{{end}}',
|
||||
]
|
||||
background = 'transparent'
|
||||
template = '❱'
|
||||
|
||||
[transient_prompt]
|
||||
foreground_templates = [
|
||||
'{{if gt .Code 0}}red{{end}}',
|
||||
'{{ if eq .Code 0}}magenta{{end}}',
|
||||
]
|
||||
background = 'transparent'
|
||||
template = '❱ '
|
Loading…
Add table
Add a link
Reference in a new issue