Skip to content

Instantly share code, notes, and snippets.

@NetzwergX
Last active November 14, 2021 09:53
Show Gist options
  • Save NetzwergX/5bad21e6bd436e63b42d667832273398 to your computer and use it in GitHub Desktop.
Save NetzwergX/5bad21e6bd436e63b42d667832273398 to your computer and use it in GitHub Desktop.
My oh-my-posh v3 theme, based on powerlevel10k_rainbow (added java & dotnet, removed adornments)
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh3/main/themes/schema.json",
"blocks": [
{
"alignment": "left",
"newline": true,
"segments": [],
"type": "prompt"
},
{
"alignment": "left",
"newline": true,
"segments": [
{
"background": "#d3d7cf",
"foreground": "#000000",
"style": "diamond",
"type": "os"
},
{
"background": "#3465a4",
"foreground": "#e4e4e4",
"powerline_symbol": "",
"properties": {
"home_icon": "~",
"prefix": "  ",
"style": "mixed"
},
"style": "powerline",
"type": "path"
},
{
"background": "#4e9a06",
"foreground": "#000000",
"powerline_symbol": "",
"properties": {
"ahead_and_behind_color": "#f26d50",
"ahead_color": "#89d1dc",
"behind_color": "#4e9a06",
"branch_icon": " ",
"display_stash_count": true,
"display_upstream_icon": true,
"local_changes_color": "#c4a000",
"stash_count_icon": " ",
"status_colors_enabled": true
},
"style": "powerline",
"type": "git"
}
],
"type": "prompt"
},
{
"alignment": "right",
"segments": [
{
"foreground": "#ffffff",
"background": "#4063D8",
"invert_powerline": true,
"powerline_symbol": "",
"properties": {
"display_version": true,
"postfix": " \uE738 "
},
"style": "powerline",
"type": "java"
},
{
"foreground": "#000000",
"background": "#00ffff",
"invert_powerline": true,
"powerline_symbol": "",
"properties": {
"display_version": true,
"postfix": " \uE77F "
},
"style": "powerline",
"type": "dotnet"
},
{
"background": "#689f63",
"foreground": "#ffffff",
"invert_powerline": true,
"powerline_symbol": "",
"properties": {
"display_version": true,
"postfix": "  "
},
"style": "powerline",
"type": "node"
},
{
"background": "#00acd7",
"foreground": "#111111",
"invert_powerline": true,
"powerline_symbol": "",
"properties": {
"display_version": true,
"postfix": "  "
},
"style": "powerline",
"type": "go"
},
{
"background": "#4063D8",
"foreground": "#111111",
"invert_powerline": true,
"powerline_symbol": "",
"properties": {
"display_version": true,
"postfix": "  "
},
"style": "powerline",
"type": "julia"
},
{
"background": "#FFDE57",
"foreground": "#111111",
"invert_powerline": true,
"powerline_symbol": "",
"properties": {
"display_mode": "files",
"display_version": true,
"display_virtual_env": false,
"postfix": "  "
},
"style": "powerline",
"type": "python"
},
{
"background": "#AE1401",
"foreground": "#ffffff",
"invert_powerline": true,
"powerline_symbol": "",
"properties": {
"display_mode": "files",
"display_version": true,
"postfix": "  "
},
"style": "powerline",
"type": "ruby"
},
{
"background": "#FEAC19",
"foreground": "#ffffff",
"invert_powerline": true,
"powerline_symbol": "",
"properties": {
"display_mode": "files",
"display_version": false,
"postfix": " "
},
"style": "powerline",
"type": "azfunc"
},
{
"background_templates": [
"{{if contains \"default\" .Profile}}#FFA400{{end}}",
"{{if contains \"jan\" .Profile}}#f1184c{{end}}"
],
"foreground": "#ffffff",
"invert_powerline": true,
"powerline_symbol": "",
"properties": {
"display_default": false,
"postfix": "  "
},
"style": "powerline",
"type": "aws"
},
{
"background": "#ffff66",
"foreground": "#111111",
"invert_powerline": true,
"powerline_symbol": "",
"properties": {
"root_icon": ""
},
"style": "powerline",
"type": "root"
},
{
"background": "#c4a000",
"foreground": "#000000",
"invert_powerline": true,
"powerline_symbol": "",
"properties": {
"postfix": "  "
},
"style": "powerline",
"type": "executiontime"
},
{
"background": "#000000",
"foreground": "#d3d7cf",
"invert_powerline": true,
"powerline_symbol": "",
"properties": {
"always_enabled": true,
"color_background": true,
"display_exit_code": true,
"error_color": "#cc2222",
"success_icon": "✔"
},
"style": "powerline",
"type": "exit"
},
{
"background": "#d3d7cf",
"foreground": "#000000",
"invert_powerline": true,
"properties": {
"postfix": "  "
},
"style": "diamond",
"type": "time"
}
],
"type": "prompt"
},
{
"alignment": "left",
"newline": true,
"segments": [
{
"background": "#000",
"foreground": "#fff",
"properties": {
"text": "λ"
},
"style": "diamond",
"type": "text"
}
],
"type": "prompt"
}
],
"console_title": true,
"console_title_style": "template",
"console_title_template": "{{ .Shell }} in {{ .Folder }}",
"final_space": true
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment