Skip to content

Instantly share code, notes, and snippets.

@jtbrough
Last active April 22, 2023 18:22
Show Gist options
  • Save jtbrough/f3d0d6513b8e64887baabd5c3c758723 to your computer and use it in GitHub Desktop.
Save jtbrough/f3d0d6513b8e64887baabd5c3c758723 to your computer and use it in GitHub Desktop.
Added OS logo to hostname
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"blocks": [
{
"alignment": "left",
"segments": [
{
"background": "#d0d5db",
"foreground": "#2d3243",
"leading_diamond": "\ue0b6",
"style": "powerline",
"template": "<#d0d5db,transparent>\u256d\u2500\ue0b6</> \ue795 {{ .Name }} <transparent,#d0d5db></>",
"type": "shell"
},
{
"background": "#f25022",
"foreground": "#2d3243",
//"powerline_symbol": "\ue0b0",
"style": "powerline",
"template": " {{ .Icon }}",
"type": "os"
},
{
"background": "#f25022",
"foreground": "#2d3243",
//"powerline_symbol": "\ue0b0",
"style": "powerline",
"template": " {{ .HostName }} ",
"type": "session"
},
{
"background": "#7fba00",
"foreground": "#2d3243",
"powerline_symbol": "\ue0b0",
"style": "powerline",
"template": " {{ if .SSHSession }}\uf983{{ end }}{{ if .Root }}\uf132{{ else }}\uf007{{ end }} {{ .UserName }} ",
"type": "session"
},
{
"background": "#05a1e8",
"foreground": "#2d3243",
"powerline_symbol": "\ue0b0",
"properties": {
"enable_hyperlink": true,
"style": "full"
},
"style": "powerline",
"template": " \ue5ff {{ path .Path .Location }} ",
"type": "path"
},
{
"background": "#00a4ef",
"foreground": "#2d3243",
"powerline_symbol": "\ue0b0",
"properties": {
"branch_icon": "",
"fetch_stash_count": true,
"fetch_status": false,
"fetch_upstream_icon": true
},
"style": "powerline",
"template": " \ue725 ({{ .UpstreamIcon }}{{ .HEAD }}{{ if gt .StashCount 0 }} \uf692 {{ .StashCount }}{{ end }}) ",
"type": "git"
},
{
"background": "#00a4ef",
"foreground": "#2d3243",
"powerline_symbol": "\ue0b0",
"style": "powerline",
"template": " \ue71e {{ if .PackageManagerIcon }}{{ .PackageManagerIcon }} {{ end }}{{ .Full }} ",
"type": "node"
},
{
"background": "#ffb900",
"foreground": "#2d3243",
"powerline_symbol": "\ue0b0",
"properties": {
"time_format": "3:04:05 PM"
},
"style": "diamond",
"template": " \uf017 {{ .CurrentDate | date .Format }} ",
"trailing_diamond": "\ue0b0",
"type": "time"
},
{
"background": "#f25022",
"background_templates": [
"{{ if gt .Code 0 }}#f25022{{ end }}"
],
"foreground": "#d0d5db",
"powerline_symbol": "\ue0b0",
"properties": {
"always_enabled": false
},
"style": "powerline",
"template": " \uf071 ",
"trailing_diamond": "\ue0b0",
"type": "exit"
}
],
"type": "prompt"
},
{
"alignment": "left",
"newline": true,
"segments": [
{
"foreground": "#f25022",
"style": "plain",
"template": "\u2570\u2500\uf054 ",
"type": "text"
}
],
"type": "prompt"
}
],
"version": 2
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment