The big update
This commit is contained in:
parent
cc6b1c28ad
commit
7c417fe7d9
2 changed files with 71 additions and 0 deletions
46
.config/oh-my-posh/basic-nerd.toml
Normal file
46
.config/oh-my-posh/basic-nerd.toml
Normal file
|
@ -0,0 +1,46 @@
|
||||||
|
"$schema" = "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json"
|
||||||
|
final_space = true
|
||||||
|
version = 2
|
||||||
|
|
||||||
|
[[blocks]]
|
||||||
|
type = "prompt"
|
||||||
|
alignment = "left"
|
||||||
|
newline = true
|
||||||
|
|
||||||
|
[[blocks.segments]]
|
||||||
|
type = "root"
|
||||||
|
style = "plain"
|
||||||
|
template = "() "
|
||||||
|
|
||||||
|
[[blocks.segments]]
|
||||||
|
type = "session"
|
||||||
|
style = "plain"
|
||||||
|
template = "{{ if .SSHSession }}() {{ end }}"
|
||||||
|
|
||||||
|
[[blocks.segments]]
|
||||||
|
type = "path"
|
||||||
|
style = "plain"
|
||||||
|
foreground = "white"
|
||||||
|
|
||||||
|
[blocks.segments.properties]
|
||||||
|
style = "powerlevel"
|
||||||
|
|
||||||
|
[[blocks.segments]]
|
||||||
|
type = "text"
|
||||||
|
foreground = "white"
|
||||||
|
style = "plain"
|
||||||
|
template = "❯"
|
||||||
|
|
||||||
|
[transient_prompt]
|
||||||
|
foreground_templates = [
|
||||||
|
"{{if gt .Code 0}}red{{end}}",
|
||||||
|
"{{if eq .Code 0}}white{{end}}",
|
||||||
|
]
|
||||||
|
background = 'transparent'
|
||||||
|
template = '❯ '
|
||||||
|
|
||||||
|
|
||||||
|
[secondary_prompt]
|
||||||
|
foreground = 'white'
|
||||||
|
background = 'transparent'
|
||||||
|
template = ' ❯❯ '
|
|
@ -5,6 +5,17 @@ version = 2
|
||||||
[[blocks]]
|
[[blocks]]
|
||||||
type = "prompt"
|
type = "prompt"
|
||||||
alignment = "left"
|
alignment = "left"
|
||||||
|
newline = true
|
||||||
|
|
||||||
|
[[blocks.segments]]
|
||||||
|
type = "root"
|
||||||
|
style = "plain"
|
||||||
|
template = "(Root) "
|
||||||
|
|
||||||
|
[[blocks.segments]]
|
||||||
|
type = "session"
|
||||||
|
style = "plain"
|
||||||
|
template = "{{ if .SSHSession }}(SSH) {{ end }}"
|
||||||
|
|
||||||
[[blocks.segments]]
|
[[blocks.segments]]
|
||||||
type = "path"
|
type = "path"
|
||||||
|
@ -19,3 +30,17 @@ alignment = "left"
|
||||||
foreground = "white"
|
foreground = "white"
|
||||||
style = "plain"
|
style = "plain"
|
||||||
template = ">"
|
template = ">"
|
||||||
|
|
||||||
|
[transient_prompt]
|
||||||
|
foreground_templates = [
|
||||||
|
"{{if gt .Code 0}}red{{end}}",
|
||||||
|
"{{if eq .Code 0}}white{{end}}",
|
||||||
|
]
|
||||||
|
background = 'transparent'
|
||||||
|
template = '> '
|
||||||
|
|
||||||
|
|
||||||
|
[secondary_prompt]
|
||||||
|
foreground = 'white'
|
||||||
|
background = 'transparent'
|
||||||
|
template = ' >> '
|
||||||
|
|
Loading…
Add table
Reference in a new issue