From 04ddc3600a4231bacc59b1868cff30a26daa3b55 Mon Sep 17 00:00:00 2001 From: pika Date: Sun, 9 Jun 2024 09:45:15 +0200 Subject: [PATCH] set some themes --- config.fish | 2 +- themes/tokyo_storm.toml | 13 ++++---- zen.toml | 74 ----------------------------------------- 3 files changed, 8 insertions(+), 81 deletions(-) delete mode 100644 zen.toml diff --git a/config.fish b/config.fish index 72985ea..3825f2b 100644 --- a/config.fish +++ b/config.fish @@ -162,7 +162,7 @@ end # ─< oh-my-posh >─────────────────────────────────────────────────────────────────────────── if command -v oh-my-posh >/dev/null 2>&1 - oh-my-posh init fish --config ~/.config/fish/zen.toml | source + oh-my-posh init fish --config ~/.config/fish/themes/tokyo_storm.toml | source end # ─< set colorscheme for bobthefish >─────────────────────────────────────────────────────── diff --git a/themes/tokyo_storm.toml b/themes/tokyo_storm.toml index 95efaca..59416c3 100644 --- a/themes/tokyo_storm.toml +++ b/themes/tokyo_storm.toml @@ -5,7 +5,7 @@ version = 2 terminal_background = "p:t-background" [palette] -main-bg = "#24283b" +main-bg = "transparent" terminal-red = "#f7768e" pistachio-green = "#9ece6a" terminal-green = "#73daca" @@ -62,7 +62,7 @@ branch_icon = " " type = "status" style = "plain" foreground = "p:terminal-red" -template = " " +template = " " [[blocks]] alignment = "right" @@ -122,15 +122,16 @@ type = "prompt" [[blocks.segments]] foreground = "p:pistachio-green" style = "plain" -template = "▶" +template = "" type = "text" [secondary_prompt] background = "transparent" foreground = "p:terminal-blue" -template = "➜ " +template = " " [transient_prompt] -background = "p:t-background" +type = "status" +background = "transparent" foreground = "p:terminal-blue" -template = "➜ " +template = "" diff --git a/zen.toml b/zen.toml deleted file mode 100644 index 7edb6f0..0000000 --- a/zen.toml +++ /dev/null @@ -1,74 +0,0 @@ -#:schema https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json - -version = 2 -final_space = true -console_title_template = '{{ .Shell }} in {{ .Folder }}' - -[[blocks]] - type = 'prompt' - alignment = 'left' - newline = true - - [[blocks.segments]] - type = 'path' - style = 'plain' - background = 'transparent' - foreground = 'blue' - template = '{{ .Path }}' - - [blocks.segments.properties] - style = 'full' - - [[blocks.segments]] - type = 'git' - style = 'plain' - foreground = 'p:grey' - background = 'transparent' - template = ' {{ .HEAD }}{{ if or (.Working.Changed) (.Staging.Changed) }}*{{ end }} {{ if gt .Behind 0 }}⇣{{ end }}{{ if gt .Ahead 0 }}⇡{{ end }}' - - [blocks.segments.properties] - branch_icon = '' - commit_icon = '@' - fetch_status = true - -[[blocks]] - type = 'rprompt' - overflow = 'hidden' - - [[blocks.segments]] - type = 'executiontime' - style = 'plain' - foreground = 'yellow' - background = 'transparent' - template = '{{ .FormattedMs }}' - - [blocks.segments.properties] - threshold = 5000 - -[[blocks]] - type = 'prompt' - alignment = 'left' - newline = true - - [[blocks.segments]] - type = 'text' - style = 'plain' - foreground_templates = [ - "{{if gt .Code 0}}red{{end}}", - "{{if eq .Code 0}}magenta{{end}}", - ] - background = 'transparent' - template = '❯' - -[transient_prompt] - foreground_templates = [ - "{{if gt .Code 0}}red{{end}}", - "{{if eq .Code 0}}magenta{{end}}", - ] - background = 'transparent' - template = '❯ ' - -[secondary_prompt] - foreground = 'magenta' - background = 'transparent' - template = '❯❯ '