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"
|
||||
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
|
||||
version = 3
|
||||
|
||||
|
@ -20,7 +21,6 @@ type = "prompt"
|
|||
foreground = "#e8e8e8"
|
||||
leading_diamond = "╭─"
|
||||
style = "diamond"
|
||||
foreground_templates = ['{{if .SSHSession }}#e04e29{{end}}']
|
||||
template = " {{ if .WSL }}WSL {{ end }}{{.Icon}} "
|
||||
type = "os"
|
||||
|
||||
|
@ -181,6 +181,43 @@ type = "prompt"
|
|||
[blocks.segments.properties]
|
||||
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]]
|
||||
background = "#522a27"
|
||||
foreground = "#000000"
|
||||
|
@ -190,6 +227,7 @@ type = "prompt"
|
|||
trailing_diamond = "─╮"
|
||||
type = "time"
|
||||
|
||||
|
||||
[[blocks]]
|
||||
alignment = "left"
|
||||
newline = true
|
||||
|
@ -197,7 +235,6 @@ type = "prompt"
|
|||
|
||||
[[blocks.segments]]
|
||||
foreground = "#2e2e4e"
|
||||
foreground_templates = ['{{if .SSHSession }}#e04e29{{end}}']
|
||||
style = "plain"
|
||||
template = "╰─"
|
||||
type = "text"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue