Skip to content

Instantly share code, notes, and snippets.

@CobyPear
Last active October 15, 2024 21:39
Show Gist options
  • Save CobyPear/ee0e65dc3234380fbc7f0500d830c0cb to your computer and use it in GitHub Desktop.
Save CobyPear/ee0e65dc3234380fbc7f0500d830c0cb to your computer and use it in GitHub Desktop.
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"version": 2,
"console_title_template": "{{ .Folder }}",
"blocks": [
{
"type": "prompt",
"alignment": "left",
"segments": [
{
"type": "session",
"style": "diamond",
"foreground": "#BBC4B9",
"leading_diamond": "<#BFA8BF>~</> ",
"template": "{{ .UserName }} ",
"properties": {
"display_host": true
}
},
{
"type": "git",
"style": "diamond",
"foreground": "#BFA8BF",
"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 }} \udb80\udd93 {{ .StashCount }}{{ end }} ",
"properties": {
"branch_icon": "\ue725 ",
"fetch_stash_count": true,
"fetch_status": true,
"fetch_upstream_icon": true,
"fetch_worktree_count": true
}
},
{
"type": "shell",
"style": "powerline",
"foreground": "#BFA8BF",
"template": " <#fff>\udb81\udfb7</> {{ .Name }} "
}
],
"newline": true
},
{
"type": "prompt",
"alignment": "right",
"segments": [
{
"type": "text",
"style": "plain",
"foreground": "#fff"
},
{
"type": "executiontime",
"style": "diamond",
"foreground": "#fff",
"template": " <#BBC4B9>{{ .FormattedMs }}s</> <#fff>\udb80\udddd</>",
"properties": {
"style": "dallas",
"threshold": 0
}
},
{
"type": "time",
"style": "diamond",
"foreground": "#BBC4B9",
"template": " {{ .CurrentDate | date .Format }} ",
"properties": {
"time_format": "Monday <#fff>at</> 3:04 PM"
}
},
{
"type": "root",
"style": "diamond",
"template": " \uf0e7",
"properties": {
"root_icon": "\uf292 "
}
},
{
"type": "node",
"style": "diamond",
"foreground": "#BBC4B9",
"template": "<#fff>\udb80\udddd \ue718</> {{ if .PackageManagerIcon }}{{ .PackageManagerIcon }} {{ end }}{{ .Full }} "
}
]
},
{
"type": "prompt",
"alignment": "left",
"segments": [
{
"type": "path",
"style": "diamond",
"foreground": "#8cf2ab",
"leading_diamond": "<#BFA8BF>~</>",
"template": " \ue5ff {{ .Path }}",
"properties": {
"folder_icon": "/",
"folder_separator_icon": " / ",
"home_icon": "home",
"style": "agnoster_full"
}
},
{
"type": "exit",
"style": "plain",
"foreground": "#BFA8BF",
"foreground_templates": [
"{{ if gt .Code 0 }}#fff{{ end }}"
],
"template": " ~ ",
"properties": {
"always_enabled": true
}
}
],
"newline": true
}
],
"transient_prompt": {
"foreground": "#FEF5ED",
"background": "transparent",
"template": "\ue285 "
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment