dotfiles/oh-my-posh/basic.toml
2025-02-15 21:46:53 +01:00

51 lines
1.1 KiB
TOML

console_title_template = '{{.PWD}}'
version = 3
final_space = true
[secondary_prompt]
template = ' >> '
foreground = 'white'
background = 'transparent'
[transient_prompt]
template = '> '
background = 'transparent'
foreground_templates = ['{{if gt .Code 0}}red{{end}}', '{{if eq .Code 0}}white{{end}}']
[[blocks]]
type = 'prompt'
alignment = 'left'
newline = true
[[blocks.segments]]
style = 'plain'
template = '(Root) '
type = 'root'
[[blocks.segments]]
style = 'plain'
template = '{{ if .SSHSession }}(SSH) {{ end }}'
type = 'session'
[[blocks.segments]]
style = 'plain'
type = 'command'
template = '{{ if .Output }}(Nix-Shell) {{ end }}'
[blocks.segments.properties]
shell = 'bash'
command = "echo $PATH | grep -qc /nix/store && echo true"
interpret = false
[[blocks.segments]]
style = 'plain'
foreground = 'white'
type = 'path'
[blocks.segments.properties]
style = 'powerlevel'
[[blocks.segments]]
style = 'plain'
template = '>'
foreground = 'white'
type = 'text'