Last active
March 23, 2023 04:47
-
-
Save code-yeongyu/a30b4219af8a11f948c882741133b999 to your computer and use it in GitHub Desktop.
My personal Oh My Posh setup, Designed to enhance the user experience and includes various advantageous utilities.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json", | |
"version": 2, | |
"blocks": [ | |
{ | |
"type": "rprompt", | |
"alignment": "right", | |
"segments": [ | |
{ | |
"background": "#424242", | |
"foreground": "#E4F34A", | |
"leading_diamond": " \ue0b6", | |
"trailing_diamond": "\ue0b4 ", | |
"properties": { | |
"fetch_version": true | |
}, | |
"style": "diamond", | |
"template": "\ue235 {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }}", | |
"type": "python" | |
}, | |
{ | |
"background": "#424242", | |
"foreground": "#7FD5EA", | |
"leading_diamond": " \ue0b6", | |
"properties": { | |
"fetch_version": true | |
}, | |
"style": "diamond", | |
"template": "\ufcd1 {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }}", | |
"trailing_diamond": "\ue0b4 ", | |
"type": "go" | |
}, | |
{ | |
"background": "#424242", | |
"foreground": "#42E66C", | |
"leading_diamond": " \ue0b6", | |
"properties": { | |
"fetch_version": true | |
}, | |
"style": "diamond", | |
"template": "\ue718 {{ if .PackageManagerIcon }}{{ .PackageManagerIcon }} {{ end }}{{ .Full }}", | |
"trailing_diamond": "\ue0b4 ", | |
"type": "node" | |
}, | |
{ | |
"background": "#424242", | |
"foreground": "#E64747", | |
"leading_diamond": " \ue0b6", | |
"properties": { | |
"fetch_version": true | |
}, | |
"style": "diamond", | |
"template": "\ue791 {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }}", | |
"trailing_diamond": "\ue0b4 ", | |
"type": "ruby" | |
}, | |
{ | |
"background": "#424242", | |
"foreground": "#E64747", | |
"leading_diamond": " \ue0b6", | |
"properties": { | |
"fetch_version": true | |
}, | |
"style": "diamond", | |
"template": "\ue738 {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }}", | |
"trailing_diamond": "\ue0b4 ", | |
"type": "java" | |
}, | |
{ | |
"background": "#424242", | |
"foreground": "#9B6BDF", | |
"leading_diamond": " \ue0b6", | |
"properties": { | |
"fetch_version": true | |
}, | |
"style": "diamond", | |
"template": "\ue624 {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }}", | |
"trailing_diamond": "\ue0b4 ", | |
"type": "julia" | |
}, | |
{ | |
"style": "diamond", | |
"leading_diamond": "\ue0b6", | |
"trailing_diamond": "\ue0b4", | |
"background": "#424242", | |
"foreground": "#8effb0", | |
"type": "executiontime", | |
"template": "{{ .FormattedMs }}", | |
"properties": { | |
"always_enabled": true | |
} | |
}, | |
{ | |
"style": "diamond", | |
"leading_diamond": " \ue0b6", | |
"trailing_diamond": "\ue0b4 ", | |
"background": "#424242", | |
"type": "session", | |
"properties": { | |
"display_host": true | |
}, | |
"template": "{{ if .SSHSession }}\uf817 {{ end }}{{ .UserName }}" | |
}, | |
{ | |
"style": "diamond", | |
"leading_diamond": "\ue0b6", | |
"trailing_diamond": "\ue0b4 ", | |
"background": "#424242", | |
"foreground": "#ffffff", | |
"type": "time", | |
"template": "{{ .CurrentDate | date .Format }}", | |
"properties": { | |
"time_format": "15:04" | |
} | |
} | |
] | |
}, | |
{ | |
"type": "prompt", | |
"alignment": "left", | |
"segments": [ | |
{ | |
"type": "path", | |
"style": "plain", | |
"foreground": "#8cdbff", | |
"properties": { | |
"folder_separator_icon": "/", | |
"style": "full" | |
}, | |
"template": " {{ .Path }} " | |
}, | |
{ | |
"foreground": "#8effb0", | |
"properties": { | |
"branch_icon": " ", | |
"fetch_status": true, | |
"fetch_upstream_icon": true | |
}, | |
"style": "plain", | |
"template": " {{ .UpstreamIcon }}{{ .HEAD }}{{if .BranchStatus }} {{ .BranchStatus }}{{ end }}{{ if .Working.Changed }} \uf044 {{ .Working.String }}{{ end }}{{ if and (.Working.Changed) (.Staging.Changed) }} |{{ end }}{{ if .Staging.Changed }}<#ef5350> \uf046 {{ .Staging.String }}</>{{ end }} ", | |
"type": "git" | |
}, | |
{ | |
"foreground": "#ff0000", | |
"style": "plain", | |
"type": "text", | |
"template": "❯" | |
}, | |
{ | |
"foreground": "#fff700", | |
"style": "plain", | |
"type": "text", | |
"template": "❯" | |
}, | |
{ | |
"foreground": "#8effb0", | |
"style": "plain", | |
"type": "text", | |
"template": "❯ " | |
} | |
] | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment