Skip to content

Instantly share code, notes, and snippets.

@Dylancyclone
Created May 28, 2022 23:39
Show Gist options
  • Save Dylancyclone/5a9987e472ea5e00580be9a7067d164c to your computer and use it in GitHub Desktop.
Save Dylancyclone/5a9987e472ea5e00580be9a7067d164c to your computer and use it in GitHub Desktop.
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"blocks": [
{
"alignment": "right",
"segments": [
{
"background": "#292929",
"foreground": "#fb7e14",
"leading_diamond": "\ue0b6",
"style": "diamond",
"template": " {{ if .SSHSession }}\uf817 {{ end }}{{ .UserName }}@{{ .HostName }} <#fb7e14>\ue0b3</> ",
"type": "session"
},
{
"background": "#292929",
"foreground": "#fb7e14",
"properties": {
"time_format": "15:04:05"
},
"style": "diamond",
"template": "{{ .CurrentDate | date .Format }} \uf017 ",
"trailing_diamond": "\ue0b4",
"type": "time"
}
],
"type": "prompt"
},
{
"alignment": "left",
"newline": true,
"segments": [
{
"background": "#292929",
"foreground": "#fb7e14",
"style": "diamond",
"template": " {{ if .WSL }}WSL at {{ end }}{{.Icon}} \ue0b1",
"type": "os"
},
{
"background": "#292929",
"foreground": "#fb7e14",
"properties": {
"always_enabled": true,
"style": "austin",
"threshold": 500
},
"style": "powerline",
"template": " {{ .FormattedMs }} \ue0b1",
"type": "executiontime"
},
{
"background": "#292929",
"foreground": "#26C6DA",
"style": "plain",
"template": " \uf0e7",
"type": "root"
},
{
"background": "#292929",
"foreground": "#fb7e14",
"properties": {
"style": "full",
"trailing_diamond": "\ue0c6"
},
"style": "diamond",
"template": " {{ .Path }} ",
"type": "path"
},
{
"background": "#292929",
"foreground": "#D4E157",
"properties": {
"branch_max_length": 25,
"fetch_stash_count": true,
"fetch_status": true
},
"style": "plain",
"template": " {{ .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": "git"
},
{
"background": "#292929",
"foreground": "#26C6DA",
"foreground_templates": [
"{{ if eq \"Full\" .State.String }}#292929{{ end }}",
"{{ if eq \"Charging\" .State.String }}#40c4ff{{ end }}",
"{{ if eq \"Discharging\" .State.String }}#fb7e14{{ end }}"
],
"properties": {
"charged_icon": "\uf240 ",
"charging_icon": "\uf583 ",
"discharging_icon": "\uf583 ",
"text": "\ue0b0"
},
"style": "powerline",
"template": "{{ if ne \"Full\" .State.String }} {{ if not .Error }}{{ .Icon }}{{ .Percentage }}{{ end }}{{ .Error }} \ue0b1{{ end }}",
"type": "battery"
},
{
"background": "#292929",
"background_templates": [
"{{ if gt .Code 0 }}#292929{{ end }}"
],
"foreground": "#fb7e14",
"properties": {
"always_enabled": true,
"display_exit_code": true
},
"style": "diamond",
"template": " {{ if gt .Code 0 }}\uf00d {{ .Meaning }}{{ else }}\u03BB{{ end }} ",
"trailing_diamond": "\ue0b0",
"type": "exit"
}
],
"type": "prompt"
}
],
"final_space": true,
"version": 2
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment