From bde00fef56f5b45a6f9f813be5d347b6dccb12ac Mon Sep 17 00:00:00 2001 From: Gal Szkolnik Date: Sun, 19 Jun 2022 22:43:54 -0400 Subject: [PATCH] Improvements to prompt --- _home/private_dot_poshtheme.omp.json | 41 ++++++++++++++++------------ 1 file changed, 23 insertions(+), 18 deletions(-) diff --git a/_home/private_dot_poshtheme.omp.json b/_home/private_dot_poshtheme.omp.json index ea95fc4..5c62053 100644 --- a/_home/private_dot_poshtheme.omp.json +++ b/_home/private_dot_poshtheme.omp.json @@ -15,7 +15,7 @@ ], "foreground": "#000000", "style": "diamond", - "leading_diamond": " \ue0b2", + "leading_diamond": "\ue0c7\u2593", "properties": { "branch_icon": "\uf126 ", "fetch_stash_count": true, @@ -47,8 +47,8 @@ { "background": "#d3d7cf", "foreground": "#000000", - "leading_diamond": "\u256d\u2500\ue0b2", "style": "diamond", + "leading_diamond": "\ue0c7\u2593", "template": " {{ if .WSL }}WSL at {{ end }}{{.Icon}} ", "type": "os" }, @@ -258,7 +258,7 @@ "invert_powerline": true, "style": "diamond", "template": " {{ .CurrentDate | date .Format }} \uf017 ", - "trailing_diamond": "\ue0b0\u2500\u256e", + "trailing_diamond": "\u2593\ue0c6", "type": "time" } ], @@ -269,24 +269,29 @@ "newline": true, "segments": [ { - "foreground": "#d3d7cf", - "style": "plain", - "template": "\u2570\u2500", - "type": "text" + "type": "shell", + "style": "diamond", + "leading_diamond": "\ue0c7", + "trailing_diamond": "\uE0B0", + "template": "{{ .Name }}", + "foreground": "#ffffff", + "background": "#000000", + "background_templates": [ + "{{ if contains \"z\ue7a2\" .Name }}#29315a{{ end }}", + "{{ if contains \"b\ue7a2\" .Name }}#424242{{ end }}", + "{{ if contains \"\uf489\" .Name }}#0037da{{ end }}" + ], + "properties": { + "mapped_shell_names": { + "powershell": " \uf489", + "pwsh": " \uf489", + "bash": "b\ue7a2", + "zsh": "z\ue7a2" + } + } } ], "type": "prompt" - }, - { - "segments": [ - { - "foreground": "#d3d7cf", - "style": "plain", - "template": "\u2500\u256f", - "type": "text" - } - ], - "type": "rprompt" } ], "console_title_template": "{{ .Shell }} in {{ .Folder }}",