From b569b57d63e3737fa38d698cd68e9c90f3a24423 Mon Sep 17 00:00:00 2001 From: Anas Elgarhy Date: Sat, 15 Apr 2023 03:26:18 +0200 Subject: [PATCH] Create the oh-my-posh theme --- .config/ohmyposh/1_shell.omp.json | 113 ++++++++++++++++++++++++++++++ 1 file changed, 113 insertions(+) create mode 100644 .config/ohmyposh/1_shell.omp.json diff --git a/.config/ohmyposh/1_shell.omp.json b/.config/ohmyposh/1_shell.omp.json new file mode 100644 index 0000000..8b5791d --- /dev/null +++ b/.config/ohmyposh/1_shell.omp.json @@ -0,0 +1,113 @@ +{ + "$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json", + "blocks": [ + { + "alignment": "left", + "newline": true, + "segments": [ + { + "foreground": "#ffbebc", + "leading_diamond": "<#ff70a6> \ue200 ", + "properties": { + "display_host": true + }, + "style": "diamond", + "template": "{{ .UserName }} <#ffffff>on", + "type": "session" + }, + { + "foreground": "#bc93ff", + "properties": { + "time_format": "Monday <#ffffff>at 3:04 PM" + }, + "style": "diamond", + "template": " {{ .CurrentDate | date .Format }} ", + "type": "time" + } + ], + "type": "prompt" + }, + { + "alignment": "right", + "segments": [ + { + "foreground": "#a9ffb4", + "style": "plain", + "type": "text" + }, + { + "foreground": "#a9ffb4", + "properties": { + "style": "dallas", + "threshold": 0 + }, + "style": "diamond", + "template": " {{ .FormattedMs }}s <#ffffff>\ue601", + "type": "executiontime" + }, + { + "properties": { + "root_icon": "\uf292 " + }, + "style": "diamond", + "template": " \uf0e7 ", + "type": "root" + }, + { + "foreground": "#ee79d1", + "properties": { + "branch_icon": "\ue725 ", + "fetch_stash_count": true, + "fetch_status": true, + "fetch_upstream_icon": true, + "fetch_worktree_count": true + }, + "style": "diamond", + "template": " {{ .UpstreamIcon }}{{ .HEAD }}{{if .BranchStatus }} {{ .BranchStatus }}{{ end }}{{ if .Working.Changed }} \uf044 {{ .Working.String }}{{ end }}{{ if and (.Working.Changed) (.Staging.Changed) }} |{{ end }}{{ if .Staging.Changed }} \uf046 {{ .Staging.String }}{{ end }}{{ if gt .StashCount 0 }} \uf692 {{ .StashCount }}{{ end }} ", + "type": "git" + } + ], + "type": "prompt" + }, + { + "alignment": "left", + "newline": true, + "segments": [ + { + "foreground": "#ffafd2", + "leading_diamond": "<#00c7fc> \ue285 <#ffafd2>{", + "properties": { + "folder_icon": "\uf07b", + "folder_separator_icon": "\uf9e0", + "home_icon": "home", + "style": "agnoster_full" + }, + "style": "diamond", + "template": " \ue5ff {{ .Path }} ", + "trailing_diamond": "<#ffafd2>}", + "type": "path" + }, + { + "foreground": "#A9FFB4", + "foreground_templates": [ + "{{ if gt .Code 0 }}#ef5350{{ end }}" + ], + "properties": { + "always_enabled": true + }, + "style": "plain", + "template": " \ue286 ", + "type": "exit" + } + ], + "type": "prompt" + } + ], + "console_title_template": "{{ .Folder }}", + "transient_prompt": { + "background": "transparent", + "foreground": "#FEF5ED", + "template": "\ue285 " + }, + "version": 2 +}