Skip to content

Instantly share code, notes, and snippets.

@m-hayabusa
Created April 5, 2022 13:34
Show Gist options
  • Save m-hayabusa/f67877735933873a22ba31a81c5b1e0c to your computer and use it in GitHub Desktop.
Save m-hayabusa/f67877735933873a22ba31a81c5b1e0c to your computer and use it in GitHub Desktop.
oh-my-posh
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"blocks": [
{
"alignment": "left",
"segments": [
{
"background": "lightWhite",
"foreground": "black",
"powerline_symbol": "\ue0b0",
"style": "powerline",
"template": " {{ .UserName }}@{{ .HostName }} ",
"type": "session"
},
{
"background": "lightBlue",
"foreground": "black",
"powerline_symbol": "\ue0b0",
"properties": {
"folder_icon": "\uf115",
"folder_separator_icon": " \ue0b1 ",
"style": "full"
},
"style": "powerline",
"template": " {{ .Path }} ",
"type": "path"
},
{
"background": "lightGreen",
"foreground": "black",
"powerline_symbol": "\ue0b0",
"style": "powerline",
"template": " {{ .HEAD }} ",
"type": "git"
},
{
"background": "lightMagenta",
"foreground": "black",
"powerline_symbol": "\ue0b0",
"style": "powerline",
"template": " \ue235 {{ if .Error }}{{ .Error }}{{ else }}{{ if .Venv }}{{ .Venv }} {{ end }}{{ .Full }}{{ end }} ",
"type": "python"
},
{
"background": "black",
"foreground": "white",
"powerline_symbol": "\ue0b0",
"style": "powerline",
"template": " \ue20f ",
"type": "exit"
}
],
"type": "prompt"
},
{
"alignment": "left",
"newline": true,
"segments": [
{
"foreground": "white",
"style": "plain",
"template": " {{ .Name }} ",
"type": "shell",
"properties": {
"mapped_shell_names": {
"pwsh": "<white>PowerShell</> <lightWhite>7</>",
"powershell": "<white>PowerShell</> <lightWhite>5</>"
}
}
},
{
"foreground": "lightRed",
"style": "plain",
"template": "as Administrator ",
"type": "root"
},
{
"foreground": "lightBlue",
"style": "plain",
"template": "\u276f ",
"type": "text"
}
],
"type": "prompt"
}
],
"version": 2
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment