Skip to content

Instantly share code, notes, and snippets.

@TheOnlyTails
Last active February 27, 2022 08:56
Show Gist options
  • Save TheOnlyTails/025c261da9afcdd9e73b344f40b935e4 to your computer and use it in GitHub Desktop.
Save TheOnlyTails/025c261da9afcdd9e73b344f40b935e4 to your computer and use it in GitHub Desktop.
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"blocks": [
{
"alignment": "left",
"newline": true,
"segments": [
{
"foreground": "#d9d9d9",
"foreground_templates": ["{{ if gt .Code 0 }}#FF7700{{ end }}"],
"properties": {
"always_enabled": true,
"template": "╭─"
},
"style": "plain",
"type": "exit"
},
{
"background": "#FF7700",
"foreground": "#000000",
"leading_diamond": "",
"properties": {
"template": " {{ .Name }} "
},
"style": "diamond",
"type": "shell"
},
{
"background": "#61AFEF",
"foreground": "transparent",
"powerline_symbol": "",
"properties": {
"folder_icon": "  ",
"folder_separator_icon": "<transparent>  </>",
"style": "agnoster_full",
"template": " {{ .Path }} "
},
"style": "powerline",
"type": "path"
},
{
"background": "#ffeb3b",
"foreground": "transparent",
"powerline_symbol": "",
"properties": {
"branch_gone_icon": " ",
"branch_icon": " ",
"branch_identical_icon": "",
"fetch_stash_count": true,
"fetch_status": true,
"fetch_upstream_icon": true,
"template": " {{ .HEAD }} {{ .BranchStatus }}{{ if .Working.Changed }}  {{ .Working.String }}{{ end }}{{ if and (.Staging.Changed) (.Working.Changed) }} |{{ end }}{{ if .Staging.Changed }}  {{ .Staging.String }}{{ end }}{{ if gt .StashCount 0}}  {{ .StashCount }}{{ end }}{{ if gt .WorktreeCount 0}}  {{ .WorktreeCount }}{{ end }}"
},
"style": "powerline",
"type": "git"
},
{
"background": "parentBackground",
"foreground": "parentForeground",
"properties": {
"template": ""
},
"style": "diamond",
"trailing_diamond": "",
"type": "text"
}
],
"type": "prompt",
"vertical_offset": 1
},
{
"alignment": "right",
"type": "prompt",
"newline": false,
"segments": [
{
"background": "#4063D8",
"foreground": "#ffffff",
"leading_diamond": "",
"trailing_diamond": "",
"properties": {
"display_mode": "files",
"home_enabled": false,
"missing_command_text": "Couldn't find Java version",
"template": "  {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }} "
},
"style": "diamond",
"type": "java"
},
{
"background": "#6CA35E",
"foreground": "#ffffff",
"leading_diamond": "",
"trailing_diamond": "",
"properties": {
"template": "  {{ if .PackageManagerIcon }}{{ .PackageManagerIcon }} {{ end }}{{ .Full }} "
},
"style": "diamond",
"type": "node"
},
{
"background": "#dea584",
"foreground": "#193549",
"leading_diamond": "",
"trailing_diamond": "",
"properties": {
"template": " 🦀 {{ .Full }} "
},
"style": "diamond",
"type": "rust"
},
{
"background": "#906cff",
"foreground": "#100e23",
"leading_diamond": "",
"trailing_diamond": "",
"properties": {
"template": "  {{ if .Error }}{{ .Error }}{{ else }}{{ if .Venv }}{{ .Venv }} {{ end }}{{ .Full }}{{ end }} "
},
"style": "diamond",
"type": "python"
},
{
"background": "#ffff66",
"foreground": "#111111",
"leading_diamond": "",
"trailing_diamond": "",
"properties": {
"template": "  "
},
"style": "diamond",
"type": "root"
}
]
},
{
"alignment": "left",
"newline": true,
"segments": [
{
"foreground": "#d9d9d9",
"foreground_templates": ["{{ if gt .Code 0 }}#FF7700{{ end }}"],
"properties": {
"always_enabled": true,
"template": "╰─❯ "
},
"style": "plain",
"type": "exit"
}
],
"type": "prompt"
}
],
"console_title": true,
"console_title_style": "template",
"console_title_template": "{{.HostName}} 📁 {{.Folder}}",
"secondary_prompt": {
"background": "transparent",
"foreground": "#d9d9d9",
"template": "└─❯ "
},
"version": 1
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment