Skip to content

Instantly share code, notes, and snippets.

@roberthstrand
Created October 21, 2022 11:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save roberthstrand/b4dbda64f1c959412ad80dba8f2935d0 to your computer and use it in GitHub Desktop.
Save roberthstrand/b4dbda64f1c959412ad80dba8f2935d0 to your computer and use it in GitHub Desktop.
poshtheme
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"blocks": [
{
"alignment": "left",
"newline": true,
"segments": [
{
"background": "#384550",
"foreground": "#ffffff",
"leading_diamond": "\ue0c7",
"properties": {
"always_enabled": true
},
"style": "diamond",
"type": "executiontime"
},
{
"background": "#ffeb3b",
"background_templates": [
"{{ if or (eq 100 .Percentage) (lt 100 .Percentage) }}#065535{{ end }}",
"{{ if lt 80 .Percentage }}#133337{{ end }}",
"{{ if lt 50 .Percentage }}#b59c00{{ end }}",
"{{ if lt 10 .Percentage }}#ff0000{{ end }}"
],
"foreground": "#ffffff",
"foreground_templates": [
"{{ if eq \"Full\" .State.String }}#ffffff{{ end }}"
],
"powerline_symbol": "\ue0b0",
"properties": {
"charged_icon": "\uf578 ",
"charging_icon": "\uf583 ",
"discharging_icon": "\ue231 "
},
"style": "powerline",
"type": "battery"
},
{
"background": "#194769",
"foreground": "#ffffff",
"powerline_symbol": "\ue0b0",
"style": "powerline",
"type": "kubectl"
},
{
"background": "#3d85c6",
"foreground": "#ffffff",
"powerline_symbol": "\ue0b0",
"style": "powerline",
"type": "az"
},
{
"background": "#203c42",
"foreground": "#ffffff",
"foreground_templates": [
"{{ if or (.Working.Changed) (.Staging.Changed) }}#ffea00{{ end }}",
"{{ if gt .Ahead 0 }}#2EC4B6{{ end }}",
"{{ if gt .Behind 0 }}#8A4FFF{{ end }}"
],
"powerline_symbol": "\ue0b0",
"properties": {
"fetch_stash_count": true,
"fetch_status": true,
"fetch_upstream_icon": true
},
"style": "powerline",
"type": "git"
},
{
"background": "#351c75",
"foreground": "#ffffff",
"powerline_symbol": "\ue0b0",
"style": "powerline",
"type": "terraform"
},
{
"background": "#194769",
"foreground": "#ffffff",
"powerline_symbol": "\ue0b0",
"style": "powerline",
"type": "go"
}
],
"type": "prompt"
},
{
"alignment": "left",
"newline": true,
"segments": [
{
"background": "#cccccc",
"foreground": "#000000",
"leading_diamond": "\ue0c7",
"properties": {
"alpine": "\uf300",
"arch": "\uf303",
"centos": "\uf304",
"debian": "\uf306",
"elementary": "\uf309",
"fedora": "\uf30a",
"gentoo": "\uf30d",
"linux": "\ue712",
"macos": "\ue711",
"manjaro": "\uf312",
"mint": "\uf30f",
"opensuse": "\uf314",
"raspbian": "\uf315",
"ubuntu": "\uf31c",
"windows": "\ue70f",
"wsl": "\ue712",
"wsl_separator": " on "
},
"style": "diamond",
"type": "os"
},
{
"background": "#cccccc",
"foreground": "#494949",
"properties": {
"display_default": false,
"display_host": false
},
"style": "powerline",
"type": "session"
},
{
"background": "#cccccc",
"foreground": "#313131",
"leading_diamond": "\ue0ba",
"properties": {
"root_icon": "\uf942"
},
"style": "diamond",
"trailing_diamond": "\ue0bc",
"type": "root"
},
{
"background": "#1b1b1b",
"foreground": "#fafafa",
"powerline_symbol": "\ue0b0",
"properties": {
"folder_separator_icon": "<#384550> / </>",
"style": "agnoster"
},
"style": "powerline",
"type": "path"
},
{
"background": "#2f2f2f",
"foreground": "#fafafa",
"style": "diamond",
"trailing_diamond": "\ue0b0",
"type": "text"
}
],
"type": "prompt"
},
{
"alignment": "left",
"newline": true,
"segments": [
{
"foreground": "#ffea00",
"style": "plain",
"type": "text"
}
],
"type": "prompt"
}
],
"console_title_template": "{{if .Root}}root :: {{end}}{{.Shell}} :: {{.Folder}}",
"version": 2
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment