Compare commits

...

7 Commits

Author SHA1 Message Date
Brennen Raimer
621e56af61 hide python segment when no python venv 2025-09-30 10:33:37 -04:00
Brennen Raimer
c8755461f3 switch to ANSI colors and match oh-my-zsh theme 2024-12-14 14:06:07 -05:00
Brennen Raimer
0608c7951b replace unicode escape codes with the corresponding unicode characters 2024-11-15 19:15:38 -05:00
Brennen Raimer
8da12d930e ok fixed it 2024-11-15 18:14:01 -05:00
Brennen Raimer
26af93bb1e oops! I fucked up the end of the prompt 2024-11-15 00:06:55 -05:00
Brennen Raimer
88a04522d1 add segment to indicate current shell type 2024-11-14 23:46:32 -05:00
Brennen Raimer
1b4cdc89c1 No clue. just opened the config on linux and there were changes 2024-11-13 23:23:39 -05:00

View File

@@ -1,227 +1,268 @@
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"console_title_template": "{{ .Shell }} in {{ .Folder }}",
"blocks": [
{
"type": "prompt",
"alignment": "left",
"segments": [
{
"background": "#d3d7cf",
"foreground": "#000000",
"leading_diamond": "\u256d\u2500\ue0b2",
"style": "diamond",
"properties": {
"cache_duration": "none"
},
"leading_diamond": "╭──",
"template": " {{ if .WSL }}WSL at {{ end }}{{.Icon}} ",
"type": "os"
"foreground": "black",
"background": "lightWhite",
"type": "os",
"style": "diamond"
},
{
"background": "#3465a4",
"foreground": "#e4e4e4",
"powerline_symbol": "\ue0b0",
"properties": {
"folder_icon": "\ue5ff",
"folder_separator_icon": "\ue0b9",
"home_icon": "\ueb06",
"cache_duration": "none",
"folder_icon": "",
"folder_separator_icon": "",
"home_icon": "",
"mapped_locations": {
"C:\\Users": "\uf007",
"C:\\Windows": "\ue62a"
"C:\\Users": "",
"C:\\Windows": ""
},
"mixed_threshold": 8,
"style": "mixed"
},
"style": "powerline",
"template": " {{ path .Path .Location }} ",
"type": "path"
"foreground": "lightWhite",
"powerline_symbol": "",
"background": "blue",
"type": "path",
"style": "powerline"
},
{
"background": "#4e9a06",
"background_templates": [
"{{ if or (.Working.Changed) (.Staging.Changed) }}#c4a000{{ end }}",
"{{ if and (gt .Ahead 0) (gt .Behind 0) }}#f26d50{{ end }}",
"{{ if gt .Ahead 0 }}#89d1dc{{ end }}",
"{{ if gt .Behind 0 }}#4e9a06{{ end }}"
],
"foreground": "#000000",
"powerline_symbol": "\ue0b0",
"properties": {
"branch_icon": "\uf126 ",
"branch_icon": " ",
"cache_duration": "none",
"fetch_stash_count": true,
"fetch_status": true,
"fetch_upstream_icon": true
},
"template": " {{ .UpstreamIcon }}{{ .HEAD }}{{if .BranchStatus }} {{ .BranchStatus }}{{ end }}{{ if .Working.Changed }}  {{ .Working.String }}{{ end }}{{ if and (.Working.Changed) (.Staging.Changed) }} |{{ end }}{{ if .Staging.Changed }}  {{ .Staging.String }}{{ end }}{{ if gt .StashCount 0 }}  {{ .StashCount }}{{ end }} ",
"foreground": "black",
"powerline_symbol": "",
"background": "green",
"type": "git",
"style": "powerline",
"template": " {{ .UpstreamIcon }}{{ .HEAD }}{{if .BranchStatus }} {{ .BranchStatus }}{{ end }}{{ if .Working.Changed }} \uf044 {{ .Working.String }}{{ end }}{{ if and (.Working.Changed) (.Staging.Changed) }} |{{ end }}{{ if .Staging.Changed }} \uf046 {{ .Staging.String }}{{ end }}{{ if gt .StashCount 0 }} \ueb4b {{ .StashCount }}{{ end }} ",
"type": "git"
"background_templates": [
"{{ if or (.Working.Changed) (.Staging.Changed) }}yellow{{ end }}",
"{{ if and (gt .Ahead 0) (gt .Behind 0) }}lightRed{{ end }}",
"{{ if gt .Ahead 0 }}lightCyan{{ end }}",
"{{ if gt .Behind 0 }}green{{ end }}"
]
}
],
"type": "prompt"
]
},
{
"type": "prompt",
"alignment": "right",
"segments": [
{
"background": "#689f63",
"foreground": "#ffffff",
"invert_powerline": true,
"powerline_symbol": "\ue0b2",
"properties": {
"cache_duration": "none",
"fetch_version": true
},
"template": " {{ if .PackageManagerIcon }}{{ .PackageManagerIcon }} {{ end }}{{ .Full }}  ",
"foreground": "white",
"powerline_symbol": "",
"background": "green",
"type": "node",
"style": "powerline",
"template": " {{ if .PackageManagerIcon }}{{ .PackageManagerIcon }} {{ end }}{{ .Full }} \ue718 ",
"type": "node"
"invert_powerline": true
},
{
"background": "#00acd7",
"foreground": "#111111",
"invert_powerline": true,
"powerline_symbol": "\ue0b2",
"properties": {
"cache_duration": "none",
"fetch_version": true
},
"template": " {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }}  ",
"foreground": "darkGray",
"powerline_symbol": "",
"background": "lightBlue",
"type": "go",
"style": "powerline",
"template": " {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }} \ue627 ",
"type": "go"
"invert_powerline": true
},
{
"background": "#4063D8",
"foreground": "#111111",
"invert_powerline": true,
"powerline_symbol": "\ue0b2",
"properties": {
"cache_duration": "none",
"fetch_version": true
},
"template": "  {{ if .Error }}{{ .Error }}{{ else }}{{ if .Venv }}{{ .Venv }} {{ end }}{{ .Full }}{{ end }} ",
"foreground": "darkGray",
"powerline_symbol": "",
"background": "blue",
"type": "julia",
"style": "powerline",
"template": " \ue624 {{ if .Error }}{{ .Error }}{{ else }}{{ if .Venv }}{{ .Venv }} {{ end }}{{ .Full }}{{ end }} ",
"type": "julia"
"invert_powerline": true
},
{
"background": "#FFDE57",
"foreground": "#111111",
"invert_powerline": true,
"powerline_symbol": "\ue0b2",
"properties": {
"display_mode": "context",
"home_enabled": true,
"fetch_virtual_env": true
"cache_duration": "none",
"display_mode": "environment",
"fetch_virtual_env": true,
"home_enabled": true
},
"template": "  {{ if .Error }}{{ .Error }}{{ else }}{{ if .Venv }}{{ .Venv }} {{ end }}{{ .Full }}{{ end }} ",
"foreground": "darkGray",
"powerline_symbol": "",
"background": "lightYellow",
"type": "python",
"style": "powerline",
"template": " \ue235 {{ if .Error }}{{ .Error }}{{ else }}{{ if .Venv }}{{ .Venv }} {{ end }}{{ .Full }}{{ end }} ",
"type": "python"
"invert_powerline": true
},
{
"background": "#AE1401",
"foreground": "#ffffff",
"invert_powerline": true,
"powerline_symbol": "\ue0b2",
"properties": {
"cache_duration": "none",
"display_mode": "files",
"fetch_version": true
},
"template": " {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }}  ",
"foreground": "white",
"powerline_symbol": "",
"background": "red",
"type": "ruby",
"style": "powerline",
"template": " {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }} \ue791 ",
"type": "ruby"
"invert_powerline": true
},
{
"background": "#FEAC19",
"foreground": "#ffffff",
"invert_powerline": true,
"powerline_symbol": "\ue0b2",
"properties": {
"cache_duration": "none",
"display_mode": "files",
"fetch_version": false
},
"template": " {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }} ",
"foreground": "white",
"powerline_symbol": "",
"background": "yellow",
"type": "azfunc",
"style": "powerline",
"template": " {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }} \uf0e7",
"type": "azfunc"
"invert_powerline": true
},
{
"background_templates": [
"{{if contains \"default\" .Profile}}#FFA400{{end}}",
"{{if contains \"jan\" .Profile}}#f1184c{{end}}"
],
"foreground": "#ffffff",
"invert_powerline": true,
"powerline_symbol": "\ue0b2",
"properties": {
"cache_duration": "none",
"display_default": false
},
"template": " {{ .Profile }}{{ if .Region }}@{{ .Region }}{{ end }}  ",
"foreground": "white",
"powerline_symbol": "",
"type": "aws",
"style": "powerline",
"template": " {{ .Profile }}{{ if .Region }}@{{ .Region }}{{ end }} \ue7ad ",
"type": "aws"
},
{
"background": "#ffff66",
"foreground": "#111111",
"invert_powerline": true,
"powerline_symbol": "\ue0b2",
"style": "powerline",
"template": " \uf0ad ",
"type": "root"
},
{
"background": "#c4a000",
"foreground": "#000000",
"invert_powerline": true,
"powerline_symbol": "\ue0b2",
"style": "powerline",
"template": " {{ .FormattedMs }} \uf252 ",
"type": "executiontime"
},
{
"background": "#000000",
"background_templates": [
"{{ if gt .Code 0 }}#cc2222{{ end }}"
"{{if contains \"default\" .Profile}}yellow{{end}}",
"{{if contains \"jan\" .Profile}}red{{end}}"
],
"foreground": "#d3d7cf",
"invert_powerline": true,
"powerline_symbol": "\ue0b2",
"properties": {
"always_enabled": true
},
"style": "powerline",
"template": " {{ if gt .Code 0 }}{{ reason .Code }}{{ else }}\uf42e{{ end }} ",
"type": "status"
"invert_powerline": true
},
{
"background": "#d3d7cf",
"foreground": "#000000",
"invert_powerline": true,
"style": "diamond",
"properties": {
"time_format": "3:04PM"
"cache_duration": "none"
},
"template": " {{ .CurrentDate | date .Format }} \uf017 ",
"trailing_diamond": "\ue0b0\u2500\u256e",
"type": "time"
"template": " ",
"foreground": "darkGray",
"powerline_symbol": "",
"background": "lightYellow",
"type": "root",
"style": "powerline",
"invert_powerline": true
},
{
"properties": {
"cache_duration": "none"
},
"template": " {{ .FormattedMs }}  ",
"foreground": "black",
"powerline_symbol": "",
"background": "yellow",
"type": "executiontime",
"style": "powerline",
"invert_powerline": true
},
{
"type": "shell",
"style": "powerline",
"powerline_symbol": "",
"invert_powerline": true,
"foreground": "white",
"background": "blue",
"properties": {
"mapped_shell_names": {
"pwsh": "󰨊 pwsh",
"powershell": "󰨊 PowerShell",
"bash": " bash",
"zsh": " zsh",
"xonsh": "🐚 xonsh",
"fish": "󰈺 fish",
"cmd": " cmd"
}
}
},
{
"properties": {
"always_enabled": true,
"cache_duration": "none"
},
"template": " {{ if gt .Code 0 }}{{ reason .Code }}{{ else }}{{ end }} ",
"foreground": "black",
"background": "lightWhite",
"trailing_diamond": "",
"type": "status",
"style": "diamond",
"background_templates": [
"{{ if gt .Code 0 }}red{{ end }}"
],
"invert_powerline": true
},
{
"properties": {
"cache_duration": "none"
},
"template": "{{ if matchP \"(powershell|pwsh|fish|cmd|nu|zsh)\" .Shell }}─╮{{ end }}",
"foreground": "lightWhite",
"type": "text",
"style": "plain"
}
],
"type": "prompt"
]
},
{
"type": "prompt",
"alignment": "left",
"newline": true,
"segments": [
{
"foreground": "#d3d7cf",
"style": "plain",
"template": "\u2570\u2500",
"type": "text"
"properties": {
"cache_duration": "none"
},
"template": "╰─",
"foreground": "lightWhite",
"type": "text",
"style": "plain"
}
],
"type": "prompt"
"newline": true
},
{
"type": "rprompt",
"segments": [
{
"foreground": "#d3d7cf",
"style": "plain",
"template": "\u2500\u256f",
"type": "text"
"properties": {
"cache_duration": "none"
},
"template": "─╯",
"foreground": "lightWhite",
"type": "text",
"style": "plain"
}
],
"type": "rprompt"
]
}
],
"console_title_template": "{{ .Shell }} in {{ .Folder }}",
"final_space": true,
"version": 2
"version": 3,
"final_space": true
}