Skip to content

Instantly share code, notes, and snippets.

@GammaGames
Last active December 19, 2024 15:33
Show Gist options
  • Save GammaGames/c1518742a4bf53e9b3d06a87368fd424 to your computer and use it in GitHub Desktop.
Save GammaGames/c1518742a4bf53e9b3d06a87368fd424 to your computer and use it in GitHub Desktop.
Personal Oh My Posh config
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"console_title_template": "{{.UserName}}@{{.HostName}} {{.Shell}} in {{.PWD}}",
"blocks": [
{
"type": "prompt",
"alignment": "left",
"segments": [
{
"properties": {
"cache_duration": "none",
"display_host": false
},
"template": "<#e7b17a>{{.HostName}}</>{{.UserName}} ",
"foreground": "#E36464",
"type": "session",
"style": "plain"
},
{
"properties": {
"cache_duration": "none"
},
"template": "➜",
"foreground": "#62ED8B",
"type": "text",
"style": "plain"
},
{
"properties": {
"cache_duration": "none",
"mixed_threshold": 24,
"style": "mixed"
},
"template": " {{ .Path }}",
"foreground": "#56B6C2",
"type": "path",
"style": "plain"
},
{
"properties": {
"branch_icon": "",
"cache_duration": "none",
"fetch_status": false
},
"template": " <#DDB15F>git(</>{{ .HEAD }}{{if .BranchStatus }} {{ .BranchStatus }}{{ end }}{{ if .Working.Changed }} \uf044 {{ .Working.String }}{{ end }}{{ if and (.Staging.Changed) (.Working.Changed) }} |{{ end }}{{ if .Staging.Changed }} \uf046 {{ .Staging.String }}{{ end }}<#DDB15F>)</>",
"foreground": "#D4AAFC",
"type": "git",
"style": "plain"
},
{
"properties": {
"cache_duration": "none"
},
"template": " {{ if gt .Code 0 }}{{ .Code }} ({{ reason .Code }}){{ else }}\uf42e{{ end }}",
"foreground": "#dc8777",
"type": "status",
"style": "plain"
}
]
}
],
"version": 3,
"final_space": true
}
@GammaGames
Copy link
Author

GammaGames commented Oct 26, 2021

image

@GammaGames
Copy link
Author

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment