From b743abcde528021b3b2f10ebf1e8aa8c3c682616 Mon Sep 17 00:00:00 2001 From: Bart van der Braak Date: Tue, 9 Jul 2024 09:20:46 +0200 Subject: [PATCH] Add oh-my-posh config theme --- oh-my-posh/theme.json | 71 +++++++++++++++++++++++++++++++++++ oh-my-posh/theme.toml | 86 +++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 157 insertions(+) create mode 100644 oh-my-posh/theme.json create mode 100644 oh-my-posh/theme.toml diff --git a/oh-my-posh/theme.json b/oh-my-posh/theme.json new file mode 100644 index 0000000..c81e13e --- /dev/null +++ b/oh-my-posh/theme.json @@ -0,0 +1,71 @@ +{ + "$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json", + "blocks": [ + { + "alignment": "left", + "segments": [ + { + "foreground": "#ffffff", + "style": "plain", + "template": "<#C591E8>\u276f<#69FF94>\u276f ", + "type": "text" + }, + { + "foreground": "#56B6C2", + "properties": { + "style": "folder" + }, + "style": "plain", + "template": "{{ .Path }} ", + "type": "path" + }, + { + "foreground": "#D0666F", + "properties": { + "branch_icon": "" + }, + "style": "plain", + "template": "<#5FAAE8>git:({{ .HEAD }}<#5FAAE8>)", + "type": "git" + }, + { + "foreground": "#DCB977", + "style": "plain", + "template": " \uf119 ", + "type": "status" + } + ], + "type": "prompt" + }, + { + "alignment": "right", + "segments": [ + { + "foreground": "#ffffff", + "properties": { + "command": "git log --pretty=format:%cr -1 || date +%H:%M:%S", + "shell": "bash" + }, + "style": "plain", + "template": " {{ .Output }} ", + "type": "command" + } + ], + "type": "prompt" + }, + { + "alignment": "left", + "newline": true, + "segments": [ + { + "foreground": "#ffffff", + "style": "plain", + "template": "\uf441 ", + "type": "text" + } + ], + "type": "prompt" + } + ], + "version": 2 +} diff --git a/oh-my-posh/theme.toml b/oh-my-posh/theme.toml new file mode 100644 index 0000000..1a3a82b --- /dev/null +++ b/oh-my-posh/theme.toml @@ -0,0 +1,86 @@ +#:schema https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json + +version = 2 + +[[blocks]] + type = 'prompt' + alignment = 'left' + + [[blocks.segments]] + type = 'text' + style = 'plain' + template = '<#C591E8>❯<#69FF94>❯ ' + background = '' + foreground = '#ffffff' + Text = '' + Duration = 0 + NameLength = 0 + + [[blocks.segments]] + type = 'path' + style = 'plain' + template = '{{ .Path }} ' + background = '' + foreground = '#56B6C2' + Text = '' + Duration = 0 + NameLength = 0 + + [blocks.segments.properties] + style = 'folder' + + [[blocks.segments]] + type = 'git' + style = 'plain' + template = '<#5FAAE8>git:({{ .HEAD }}<#5FAAE8>)' + background = '' + foreground = '#D0666F' + Text = '' + Duration = 0 + NameLength = 0 + + [blocks.segments.properties] + branch_icon = '' + + [[blocks.segments]] + type = 'status' + style = 'plain' + template = '  ' + background = '' + foreground = '#DCB977' + Text = '' + Duration = 0 + NameLength = 0 + +[[blocks]] + type = 'prompt' + alignment = 'right' + + [[blocks.segments]] + type = 'command' + style = 'plain' + template = ' {{ .Output }} ' + background = '' + foreground = '#ffffff' + Text = '' + Duration = 0 + NameLength = 0 + + [blocks.segments.properties] + command = 'git log --pretty=format:%cr -1 || date +%H:%M:%S' + shell = 'bash' + +[[blocks]] + type = 'prompt' + alignment = 'left' + newline = true + + [[blocks.segments]] + type = 'text' + style = 'plain' + template = ' ' + background = '' + foreground = '#ffffff' + Text = '' + Duration = 0 + NameLength = 0