Skip to content

Instantly share code, notes, and snippets.

@iOnline247
Forked from shanselman/ohmyposhv3-v2.json
Last active September 2, 2022 12:39
Show Gist options
  • Save iOnline247/71750fdf3e57a3f539784b50ea36e35d to your computer and use it in GitHub Desktop.
Save iOnline247/71750fdf3e57a3f539784b50ea36e35d to your computer and use it in GitHub Desktop.
ohmyposhv3-v2
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"blocks": [
{
"alignment": "left",
"segments": [
{
"background": "#00c7fc",
"foreground": "#000000",
"style": "diamond",
"leading_diamond": "<transparent,#00c7fc>\ue0b0</>",
"properties": {
"template": " \uf85a CPU: {{ round .PhysicalPercentUsed .Precision }}% | "
},
"type": "sysinfo"
},
{
"background": "#00c7fc",
"foreground": "#000000",
"style": "diamond",
"template": "RAM: {{ (div ((sub .PhysicalTotalMemory .PhysicalFreeMemory)|float64) 1000000000.0) }}/{{ (div .PhysicalTotalMemory 1000000000.0) }}GB \uf85a ",
"trailing_diamond": "<transparent,#00c7fc>\ue0b2</>",
"type": "sysinfo"
},
{
"background": "#ff479c",
"foreground": "#ffffff",
"leading_diamond": "\ue0b6",
"powerline_symbol": "\ue0b0",
"properties": {
"style": "folder"
},
"style": "diamond",
"template": " \ue5ff {{ .Path }} ",
"type": "path"
},
{
"background": "#fffb38",
"foreground": "#193549",
"powerline_symbol": "\ue0b0",
"properties": {
"fetch_stash_count": true,
"fetch_status": true,
"fetch_upstream_icon": true
},
"style": "powerline",
"template": " {{ .HEAD }} {{ .BranchStatus }}{{ if .Working.Changed }} \uf044 {{ .Working.String }}{{ end }}{{ if and (.Staging.Changed) (.Working.Changed) }} |{{ end }}{{ if .Staging.Changed }} \uf046 {{ .Staging.String }}{{ end }}{{ if gt .StashCount 0}} \uf692 {{ .StashCount }}{{ end }}{{ if gt .WorktreeCount 0}} \uf1bb {{ .WorktreeCount }}{{ end }} ",
"type": "git"
},
{
"type": "aws",
"style": "powerline",
"powerline_symbol": "\uE0B0",
"foreground": "#ffffff",
"background": "#FFA400",
"template": " \uE7AD {{.Profile}}{{if .Region}}@{{.Region}}{{end}}"
}
],
"type": "prompt"
}
],
"final_space": true,
"version": 2
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment