Skip to content

Instantly share code, notes, and snippets.

@barrientosvctor
Created October 9, 2022 03:34
Show Gist options
  • Save barrientosvctor/420bc5f78748c9a1244b0583b3b08490 to your computer and use it in GitHub Desktop.
Save barrientosvctor/420bc5f78748c9a1244b0583b3b08490 to your computer and use it in GitHub Desktop.
Half Life theme for Oh my Posh
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"blocks": [
{
"alignment": "left",
"newline": true,
"segments": [
{
"foreground": "#ac4ef0",
"properties": {
"folder_separator_icon": "/",
"home_icon": "~",
"max_depth": 3,
"style": "folder"
},
"style": "diamond",
"template": "{{ .Path }} ",
"type": "path"
},
{
"foreground": "#77f63a",
"properties": {
"branch_icon": "\ue725 ",
"fetch_stash_count": true,
"fetch_status": true,
"fetch_upstream_icon": true,
"fetch_worktree_count": true
},
"style": "diamond",
"template": "<#D75F00>λ</> {{ .HEAD }}{{ 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": "git"
},
{
"foreground": "#A9FFB4",
"foreground_templates": [
"{{ if gt .Code 0 }}#ef5350{{ end }}"
],
"properties": {
"always_enabled": true
},
"style": "plain",
"template": "\u276f ",
"type": "exit"
}
],
"type": "prompt"
},
{
"alignment": "left",
"newline": true,
"segments": [
],
"type": "prompt"
}
],
"console_title_template": "{{ .Folder }}",
"transient_prompt": {
"background": "transparent",
"foreground": "#FEF5ED",
"template": "\ue285 "
},
"final_space": false,
"version": 2
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment