Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@barrientosvctor
Created October 9, 2022 03:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save barrientosvctor/53d6e45914044c77f95a220d1ef31cc3 to your computer and use it in GitHub Desktop.
Save barrientosvctor/53d6e45914044c77f95a220d1ef31cc3 to your computer and use it in GitHub Desktop.
My Oh my Posh theme
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"blocks": [
{
"alignment": "left",
"newline": true,
"segments": [
{
"foreground": "#24ecfc",
"properties": {
"folder_icon": "",
"folder_separator_icon": "易",
"home_icon": "home",
"style": "folder"
},
"style": "diamond",
"template": "  {{ .Path }} ",
"type": "path"
},
{
"foreground": "#D75F00",
"properties": {
"display_host": true
},
"style": "diamond",
"template": "λ",
"type": "session"
},
{
"foreground": "#f8a88a",
"properties": {
"branch_icon": " ",
"fetch_stash_count": true,
"fetch_status": true,
"fetch_upstream_icon": true,
"fetch_worktree_count": true
},
"style": "diamond",
"template": " {{ .UpstreamIcon }}{{ .HEAD }}{{ .BranchStatus }}{{ 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 }} ",
"type": "git"
}
],
"type": "prompt"
},
{
"alignment": "left",
"newline": true,
"segments": [
{
"foreground": "#A9FFB4",
"foreground_templates": [
"{{ if gt .Code 0 }}#ef5350{{ end }}"
],
"properties": {
"always_enabled": true
},
"style": "plain",
"template": "❯ ",
"type": "exit"
}
],
"type": "prompt"
}
],
"console_title_template": "{{ .Folder }}",
"transient_prompt": {
"background": "transparent",
"foreground": "#FEF5ED",
"template": " "
},
"version": 2
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment