Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@DamianEdwards
Last active July 13, 2023 00:23
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save DamianEdwards/d91fb5f9e2178efb1e9c232c67cedbb4 to your computer and use it in GitHub Desktop.
Save DamianEdwards/d91fb5f9e2178efb1e9c232c67cedbb4 to your computer and use it in GitHub Desktop.
My oh-my-posh profile
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"blocks": [
{
"alignment": "left",
"segments": [
{
"foreground": "#f1184c",
"properties": {
"template": " \uf0e7 "
},
"style": "plain",
"type": "root"
},
{
"foreground": "#3A86FF",
"powerline_symbol": "",
"properties": {
"template": "{{ if .WSL }}WSL at {{ end }}{{.Icon}} "
},
"style": "plain",
"type": "os"
},
{
"foreground": "#FFBB00",
"properties": {
"template": " {{ .CurrentDate | date .Format }} ",
"time_format": "15:04:05"
},
"style": "plain",
"type": "time"
},
{
// VS version
"background": "#5C2D91", // VS purple from https://visualstudio.microsoft.com/
"foreground": "#ffffff",
"powerline_symbol": "\ue0c4",
"properties": {
"template": "{{if .Env.VSCMD_VER}} \udb81\ude10 {{.Env.VSCMD_VER}} {{ end }}"
},
"style": "powerline",
"type": "text"
},
{
"foreground": "#33DD2D",
"properties": {
"folder_separator_icon": "/",
"style": "agnoster_short",
"template": " \ue5ff {{ .Path }} "
},
"style": "plain",
"type": "path"
},
{
"foreground": "#3A86FF",
"properties": {
"fetch_stash_count": true,
"fetch_status": true,
"fetch_upstream_icon": true,
"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}} \uf0c7 {{ .StashCount }}{{ end }}{{ if gt .WorktreeCount 0}} \uf1bb {{ .WorktreeCount }}{{ end }} "
},
"style": "plain",
"type": "git"
},
{
"background": "#512BD4", // .NET purple from https://dot.net
"foreground": "#ffffff",
"powerline_symbol": "\ue0c4",
"properties": {
"template": " \ue77f {{ if .Unsupported }}\uf071{{ else }}{{ .Full }}{{ end }} "
},
"style": "powerline",
"type": "dotnet"
},
{
"background": "#0184bc",
"foreground": "#ffffff",
"powerline_symbol": "\ue0c4",
"properties": {
"style": "austin",
"template": " <#fefefe>\uf520</> {{ .FormattedMs }} ",
"threshold": 1
},
"style": "powerline",
"type": "executiontime"
},
{
"background": "#33DD2D",
"background_templates": [
"{{ if gt .Code 0 }}#f1184c{{ end }}"
],
"foreground": "#242424",
"powerline_symbol": "\ue0c4",
"properties": {
"template": " \udb82\udfea "
},
"style": "powerline",
"type": "exit"
}
],
"type": "prompt"
},
{
"alignment": "left",
"newline": true,
"segments": [
{
"foreground": "#f1184c",
"properties": {
"template": "\u279c "
},
"style": "plain",
"type": "text"
}
],
"type": "prompt"
}
],
"console_title": true,
"console_title_style": "template",
"console_title_template": "{{if .Root}}(Admin) {{end}}{{.Folder}}",
"version": 1
}
@DamianEdwards
Copy link
Author

Updated for Nerd Fonts v3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment