From 7c417fe7d98499275e605c42f53e256da62a9818 Mon Sep 17 00:00:00 2001 From: pauljako <126326487+pauljako@users.noreply.github.com> Date: Sat, 24 Aug 2024 14:43:09 +0200 Subject: [PATCH] The big update --- .config/oh-my-posh/basic-nerd.toml | 46 ++++++++++++++++++++++++++++++ .config/oh-my-posh/basic.toml | 25 ++++++++++++++++ 2 files changed, 71 insertions(+) create mode 100644 .config/oh-my-posh/basic-nerd.toml diff --git a/.config/oh-my-posh/basic-nerd.toml b/.config/oh-my-posh/basic-nerd.toml new file mode 100644 index 0000000..17751d1 --- /dev/null +++ b/.config/oh-my-posh/basic-nerd.toml @@ -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 = ' ❯❯ ' diff --git a/.config/oh-my-posh/basic.toml b/.config/oh-my-posh/basic.toml index 8efd37b..01abb99 100644 --- a/.config/oh-my-posh/basic.toml +++ b/.config/oh-my-posh/basic.toml @@ -5,6 +5,17 @@ version = 2 [[blocks]] type = "prompt" 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]] type = "path" @@ -19,3 +30,17 @@ alignment = "left" 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 = ' >> '