Last active
November 5, 2023 00:15
-
-
Save dam450/460bed707799527cda65f6d151852ce0 to your computer and use it in GitHub Desktop.
Tema customizado para OhMyPosh!
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json", | |
"console_title_template": "{{.Folder}}{{if .Root}} :: 😈 Root {{else}} :: 🚀{{end}} :: {{.Shell}}", | |
"palette": { | |
"red": "#FF0000", | |
"green": "#00FF00", | |
"blue": "#0000FF", | |
"white": "#FFFFFF", | |
"black": "#111111", | |
"success": "p:green", | |
"error": "p:red" | |
}, | |
"var": { | |
"PromptChar": "\uf054", | |
"TransientChar": "\ue7a2", | |
"HomeChar": "\uF7DB", | |
"Ghost": "\uE007" | |
}, | |
"blocks": [ | |
{ | |
"alignment": "left", | |
"segments": [ | |
{ | |
"type": "shell", | |
"background": "#363066", | |
"foreground": "#51AD89", | |
"background_templates": [ | |
"{{ if .Root }}#C65C00{{ end }}" | |
], | |
"foreground_templates": [ | |
"{{ if .Root }}#003E74{{ end }}" | |
], | |
"style": "powerline", | |
"powerline_symbol": "\ue0b0", | |
"template": " {{ if .Root }}<#991111>\ue614 </>{{ else }}{{ end }}{{ .Name }} \ue7a2 ", | |
"properties": { | |
"mapped_shell_names": { | |
"pwsh": "posh" | |
} | |
} | |
}, | |
{ | |
"type": "path", | |
"background": "#484089", | |
"foreground": "#3EC669", | |
"properties": { | |
"home_icon": "\uF7DB ~", | |
"folder_icon": "…", | |
"folder_separator_icon": " <#363066>\uE0B1</> ", | |
"style": "mixed", | |
"mixed_threshold": 4, | |
"hide_root_location": true, | |
"max_depth": 1, | |
"mapped_locations_enabled": true, | |
"mapped_locations": { | |
"C:\\": "C", | |
"D:\\": "D", | |
"E:\\": "E", | |
"P:\\projetos": "<#00FF00>\uF595</>", | |
"C:\\Windows": "\ue70f", | |
"D:\\MyFiles\\Evandro\\OneDrive": "\uE7AE", | |
"D:\\projects": "<#00FF00>\uF8D6</>", | |
"D:\\projects\\labyes": "<#00FF00>\uEA79</>", | |
"D:\\projects\\RocketSeat\\explorer": "<#75D8FF>\uf6a6</>", | |
"D:\\projects\\RocketSeat": "<#B388FF>\uf427</>", | |
"e:\\RocketSeat": "<#B388FF>\uEB44</>", | |
"E:\\rocketseat\\explorer": "<#75D8FF>\uEA8C</>", | |
"E:\\rocketseat\\ignite": "<#00FF00>\uE780</>", | |
"~/rocketseat": "\uf427", | |
"~/rocketseat/nlw": "\uF121" | |
} | |
}, | |
"style": "powerline", | |
"powerline_symbol": "\uE0B0", | |
"template": " {{ .Path }} " | |
}, | |
{ | |
"type": "git", | |
"background": "#192357", | |
"foreground": "#43CCEA", | |
"foreground_templates": [ | |
"{{ if or (.Working.Changed) (.Staging.Changed) }}#FF9248{{ end }}", | |
"{{ if and (gt .Ahead 0) (gt .Behind 0) }}#FF4500{{ end }}", | |
"{{ if gt .Ahead 0 }}#B388FF{{ end }}", | |
"{{ if gt .Behind 0 }}#B388FF{{ end }}" | |
], | |
"properties": { | |
"branch_max_length": 25, | |
"fetch_stash_count": true, | |
"fetch_status": true, | |
"fetch_upstream_icon": true | |
}, | |
"style": "powerline", | |
"powerline_symbol": "\ue0b0", | |
"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 }} \uf692 {{ .StashCount }}{{ end }} " | |
}, | |
{ | |
"type": "executiontime", | |
"style": "plain", | |
"foreground": "#A0A0A0", | |
"background": "transparent", | |
"template": " <#FEFEFE>\uf608</> {{ .FormattedMs }} ", | |
"properties": { | |
"always_enabled": false, | |
"threshold": 180, | |
"style": "roundrock" | |
} | |
}, | |
{ | |
"type": "exit", | |
"foreground": "#858585", | |
"style": "plain", | |
"template": " <f>{{.Var.Ghost}}</f> " | |
} | |
], | |
"type": "prompt" | |
}, | |
{ | |
"alignment": "right", | |
"segments": [ | |
{ | |
"type": "node", | |
"foreground": "#5fb157", | |
"background": "#343434", | |
"properties": { | |
"display_mode": "context", | |
"fetch_version": true, | |
"fetch_package_manager": true, | |
"npm_icon": "<#FE4A49>\ue71e npm</> ", | |
"yarn_icon": "<#44FFD2>\uf61a yarn</> " | |
}, | |
"style": "diamond", | |
"leading_diamond": " \ue0b6", | |
"trailing_diamond": "\ue0b4", | |
"template": "{{ if .PackageManagerIcon }}{{ .PackageManagerIcon }}{{ end }} \ue718 {{ .Full }}" | |
}, | |
{ | |
"type": "deno", | |
"foreground": "#0086c4", | |
"background": "transparent", | |
"properties": { | |
"display_mode": "environment", | |
"fetch_version": true | |
}, | |
"style": "diamond", | |
"leading_diamond": " \ue0b6", | |
"trailing_diamond": "\ue0b4", | |
"template": " \ufbe4 {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }}" | |
}, | |
{ | |
"type": "crystal", | |
"style": "diamond", | |
"leading_diamond": " \ue0b6", | |
"trailing_diamond": "\ue0b4", | |
"foreground": "#4063D8", | |
"background": "#101833", | |
"properties": { | |
"display_mode": "files", | |
"fetch_version": true | |
}, | |
"template": "\uE370{{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }}" | |
}, | |
{ | |
"type": "angular", | |
"foreground": "#000000", | |
"background": "#555555", | |
"properties": { | |
"display_mode": "files", | |
"fetch_version": true | |
}, | |
"style": "diamond", | |
"leading_diamond": " \ue0b6", | |
"trailing_diamond": "\ue0b4", | |
"template": " \uE753 {{ if .Error }}{{ else }}{{ .Full }}{{ end }}" | |
}, | |
{ | |
"type": "php", | |
"foreground": "#ffffff", | |
"background": "#444444", | |
"properties": { | |
"display_mode": "files", | |
"fetch_version": true | |
}, | |
"style": "diamond", | |
"leading_diamond": "\ue0b6", | |
"trailing_diamond": "\ue0b4", | |
"template": " \uf81e {{ if .Error }}{{ else }}{{ .Full }}{{ end }}" | |
}, | |
{ | |
"type": "lua", | |
"foreground": "#ffffff", | |
"background": "#000000", | |
"properties": { | |
"display_mode": "files", | |
"fetch_version": true | |
}, | |
"style": "diamond", | |
"leading_diamond": "\ue0b6", | |
"trailing_diamond": "\ue0b4", | |
"template": " \ue620 {{ if .Error }}{{ else }}{{ .Full }}{{ end }}" | |
}, | |
{ | |
"type": "ruby", | |
"foreground": "#DE3F24", | |
"background": "#220905", | |
"properties": { | |
"display_mode": "files", | |
"fetch_version": true | |
}, | |
"style": "diamond", | |
"leading_diamond": "\ue0b6", | |
"trailing_diamond": "\ue0b4", | |
"template": " \ue791 {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }}" | |
}, | |
{ | |
"type": "perl", | |
"foreground": "#ffffff", | |
"background": "#000000", | |
"properties": { | |
"display_mode": "files", | |
"fetch_version": true | |
}, | |
"style": "diamond", | |
"leading_diamond": "\ue0b6", | |
"trailing_diamond": "\ue0b4", | |
"template": " \ue769 {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }}" | |
}, | |
{ | |
"type": "python", | |
"foreground": "#FED142", | |
"background": "#1c4780", | |
"properties": { | |
"display_mode": "context", | |
"fetch_virtual_env": true | |
}, | |
"style": "diamond", | |
"leading_diamond": "\ue0b6", | |
"trailing_diamond": "\ue0b4", | |
"template": " \ue235 {{ if .Error }}{{ else }}{{ .Full }}{{ end }}" | |
}, | |
{ | |
"type": "os", | |
"foreground": "#A485F9", | |
"background": "#180450", | |
"style": "diamond", | |
"leading_diamond": " \ue0b6", | |
"trailing_diamond": "\ue0b4", | |
"properties": { | |
"linux": "\ue712", | |
"macos": "\ue711", | |
"windows": "\ue70f", | |
"ubuntu": "" | |
}, | |
"template": "{{ if .WSL }}WSL{{.Icon}}{{ end }}" | |
}, | |
{ | |
"type": "text", | |
"style": "plain", | |
"template": " " | |
}, | |
{ | |
"type": "upgrade", | |
"style": "diamond", | |
"leading_diamond": " \ue0b6", | |
"trailing_diamond": "\ue0b4 ", | |
"foreground": "black", | |
"background": "green", | |
"template": "\uF019" | |
} | |
], | |
"type": "prompt" | |
}, | |
{ | |
"alignment": "left", | |
"newline": true, | |
"segments": [ | |
{ | |
"type": "text", | |
"background": "transparent", | |
"foreground": "p:success", | |
"foreground_templates": [ | |
"{{ if gt .Code 0 }}p:error{{ end }}" | |
], | |
"style": "plain", | |
"template": " {{ .Var.PromptChar }} " | |
} | |
], | |
"type": "prompt" | |
} | |
], | |
"secondary_prompt": { | |
"background": "transparent", | |
"foreground": "darkGray", | |
"template": " {{ .Var.PromptChar }} " | |
}, | |
"valid_line": { | |
"background": "transparent", | |
"foreground": "p:success", | |
"template": " <f>{{ .Var.PromptChar }}</f> " | |
}, | |
"error_line": { | |
"background": "transparent", | |
"foreground": "p:error", | |
"template": " <f>{{ .Var.PromptChar }}</f> " | |
}, | |
"transient_prompt": { | |
"background": "transparent", | |
"foreground": "lightBlue", | |
"template": " {{ .Var.TransientChar }} " | |
}, | |
"final_space": false, | |
"version": 2, | |
"shell_integration": true, | |
"patch_pwsh_bleed": true | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment