Skip to content

Instantly share code, notes, and snippets.

@chall3ng3r
Last active December 10, 2021 13:52
Show Gist options
  • Save chall3ng3r/7092f0fc0aa2a0e3d645e19758c9a5d7 to your computer and use it in GitHub Desktop.
Save chall3ng3r/7092f0fc0aa2a0e3d645e19758c9a5d7 to your computer and use it in GitHub Desktop.
ohmyposh.dev - config
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"final_space": true,
"console_title": true,
"console_title_style": "template",
"console_title_template": "{{.User}}@{{.Host}} in {{ .Path }}",
"blocks": [
{
"type": "prompt",
"alignment": "left",
"vertical_offset": 1,
"segments": [
{
"type": "os",
"style": "powerline",
"powerline_symbol": "\uE0B0",
"foreground": "#fff",
"background": "#773c1a",
"properties": {
"windows": "\uE62A ",
"postfix": ""
}
},
{
"type": "path",
"style": "powerline",
"powerline_symbol": "\uE0B0",
"foreground": "#7de3ff",
"background": "#00446e",
"properties": {
"prefix": " \uE5FF ",
"style": "full",
"folder_separator_icon": "\\"
}
},
{
"type": "git",
"style": "powerline",
"powerline_symbol": "\uE0B0",
"foreground": "#193549",
"background": "#d2ff5e",
"background_templates": [
"{{ if or (.Working.Changed) (.Staging.Changed) }}#ff9248{{ end }}",
"{{ if and (gt .Ahead 0) (gt .Behind 0) }}#f26d50{{ end }}",
"{{ if gt .Ahead 0 }}#89d1dc{{ end }}",
"{{ if gt .Behind 0 }}#f17c37{{ end }}"
],
"properties": {
"fetch_status": true,
"fetch_stash_count": true,
"fetch_upstream_icon": true,
"template": "{{ .UpstreamIcon }}{{ .HEAD }}{{ .BranchStatus }}{{ 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": "exit",
"style": "powerline",
"powerline_symbol": "",
"invert_powerline": false,
"foreground": "#ffffff",
"background": "#98cdcf",
"leading_diamond": "",
"trailing_diamond": "",
"properties": {
"always_enabled": false,
"color_background": true,
"display_exit_code": false,
"error_color": "#8d5",
"prefix": " ⛔"
}
},
{
"type": "executiontime",
"style": "diamond",
"foreground": "#ffffff",
"background": "#83769c",
"leading_diamond": "",
"trailing_diamond": "",
"properties": {
"always_enabled": true,
"prefix": "\ufbab ",
"postfix": "\u2800"
}
}
]
},
{
"type": "prompt",
"alignment": "left",
"newline": true,
"segments": [
{
"type": "root",
"style": "plain",
"foreground": "#e66f00",
"properties": {
"root_icon": "⚡"
}
},
{
"type": "text",
"style": "plain",
"foreground": "#f1184c",
"properties": {
"prefix": "",
"text": ">"
}
}
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment