addet red host to identify if on ssh
This commit is contained in:
parent
a3cdccff04
commit
866111e4f8
1 changed files with 40 additions and 3 deletions
|
@ -1,5 +1,6 @@
|
||||||
"$schema" = "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json"
|
"$schema" = "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json"
|
||||||
console_title_template = "{{ .Shell }} in {{ .Folder }}"
|
console_title_template = "{{ .Shell }} in {{ .Folder }} :: {{if .Root}}Admin{{end}}"
|
||||||
|
# console_title_template = ' {{ .Folder }} :: {{if .Root}}Admin{{end}}'
|
||||||
final_space = true
|
final_space = true
|
||||||
version = 3
|
version = 3
|
||||||
|
|
||||||
|
@ -20,7 +21,6 @@ type = "prompt"
|
||||||
foreground = "#e8e8e8"
|
foreground = "#e8e8e8"
|
||||||
leading_diamond = "╭─"
|
leading_diamond = "╭─"
|
||||||
style = "diamond"
|
style = "diamond"
|
||||||
foreground_templates = ['{{if .SSHSession }}#e04e29{{end}}']
|
|
||||||
template = " {{ if .WSL }}WSL {{ end }}{{.Icon}} "
|
template = " {{ if .WSL }}WSL {{ end }}{{.Icon}} "
|
||||||
type = "os"
|
type = "os"
|
||||||
|
|
||||||
|
@ -181,6 +181,43 @@ type = "prompt"
|
||||||
[blocks.segments.properties]
|
[blocks.segments.properties]
|
||||||
always_enabled = true
|
always_enabled = true
|
||||||
|
|
||||||
|
[[blocks.segments]]
|
||||||
|
template = '{{ .UserName }}'
|
||||||
|
foreground = '#629a55'
|
||||||
|
# invert_powerline = false
|
||||||
|
# powerline_symbol = ""
|
||||||
|
type = 'session'
|
||||||
|
style = 'powerline'
|
||||||
|
foreground_templates = ['{{if .SSHSession }}#e04e29{{end}}']
|
||||||
|
|
||||||
|
[blocks.segments.properties]
|
||||||
|
cache_duration = 'none'
|
||||||
|
|
||||||
|
[[blocks.segments]]
|
||||||
|
template = '@'
|
||||||
|
foreground = '#629a55'
|
||||||
|
type = 'session'
|
||||||
|
foreground_templates = ['{{if .SSHSession }}#e04e29{{end}}']
|
||||||
|
|
||||||
|
[blocks.segments.properties]
|
||||||
|
cache_duration = 'none'
|
||||||
|
|
||||||
|
[[blocks.segments]]
|
||||||
|
template = '{{ .HostName }}'
|
||||||
|
foreground = '#629a55'
|
||||||
|
type = 'session'
|
||||||
|
style = 'powerline'
|
||||||
|
foreground_templates = ['{{if .SSHSession }}#e04e29{{end}}']
|
||||||
|
|
||||||
|
[blocks.segments.properties]
|
||||||
|
cache_duration = 'none'
|
||||||
|
|
||||||
|
# [[blocks.segments]]
|
||||||
|
# invert_powerline = true
|
||||||
|
# style = "diamond"
|
||||||
|
# trailing_diamond = "─╮"
|
||||||
|
# foreground_templates = ['{{if .SSHSession }}#e04e29{{end}}']
|
||||||
|
|
||||||
[[blocks.segments]]
|
[[blocks.segments]]
|
||||||
background = "#522a27"
|
background = "#522a27"
|
||||||
foreground = "#000000"
|
foreground = "#000000"
|
||||||
|
@ -190,6 +227,7 @@ type = "prompt"
|
||||||
trailing_diamond = "─╮"
|
trailing_diamond = "─╮"
|
||||||
type = "time"
|
type = "time"
|
||||||
|
|
||||||
|
|
||||||
[[blocks]]
|
[[blocks]]
|
||||||
alignment = "left"
|
alignment = "left"
|
||||||
newline = true
|
newline = true
|
||||||
|
@ -197,7 +235,6 @@ type = "prompt"
|
||||||
|
|
||||||
[[blocks.segments]]
|
[[blocks.segments]]
|
||||||
foreground = "#2e2e4e"
|
foreground = "#2e2e4e"
|
||||||
foreground_templates = ['{{if .SSHSession }}#e04e29{{end}}']
|
|
||||||
style = "plain"
|
style = "plain"
|
||||||
template = "╰─"
|
template = "╰─"
|
||||||
type = "text"
|
type = "text"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue