Skip to content

Instantly share code, notes, and snippets.

@kid1412621
Last active May 19, 2023 08:01
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 kid1412621/a548b712137841ecd2dcef211735e6b6 to your computer and use it in GitHub Desktop.
Save kid1412621/a548b712137841ecd2dcef211735e6b6 to your computer and use it in GitHub Desktop.
custom theme of oh-my-posh based on star theme
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"blocks": [
{
"alignment": "left",
"segments": [
{
"foreground": "#E06C75",
"style": "plain",
"template": "root <#ffffff>in</> ",
"type": "root"
},
{
"foreground": "#55B9C4",
"properties": {
"style": "folder"
},
"style": "plain",
"template": "{{ .Path }} ",
"type": "path"
},
{
"foreground": "#C678DD",
"properties": {
"fetch_status": true
},
"style": "plain",
"template": "<#ffffff>on</> {{ .HEAD }}{{ .BranchStatus }}{{ if .Working.Changed }} \uf044 {{ .Working.String }}{{ end }}{{ if and (.Working.Changed) (.Staging.Changed) }} |{{ end }}{{ if .Staging.Changed }} \uf046 {{ .Staging.String }}{{ end }} ",
"type": "git"
},
{
"foreground": "#98C379",
"properties": {
"fetch_version": true
},
"style": "plain",
"template": " \ue781 {{ if .PackageManagerIcon }}{{ .PackageManagerIcon }} {{ end }}{{ .Full }} ",
"type": "node"
},
{
"type": "java",
"style": "plain",
"foreground": "#f89820",
"template": " \uE738 {{ .Full }}"
},
{
"type": "kotlin",
"style": "plain",
"foreground": "#906cff",
"template": " \ufa05 {{ .Full }} "
},
{
"type": "go",
"style": "plain",
"foreground": "#7FD5EA",
"template": " \uFCD1 {{ .Full }} "
},
{
"type": "dotnet",
"style": "plain",
"foreground": "#00ffff",
"template": " \uE77F {{ .Full }} "
},
{
"type": "python",
"style": "plain",
"foreground": "#906cff",
"template": " \uE235 {{ .Full }} "
},
{
"foreground": "#C94A16",
"style": "plain",
"template": " x ",
"type": "exit"
}
],
"type": "prompt"
},
{
"alignment": "right",
"segments": [
{
"type": "docker",
"style": "plain",
"foreground": "#000000",
"background": "#0B59E7",
"template": "  {{ .Context }} "
},
{
"type": "kubectl",
"style": "plain",
"foreground": "#000000",
"background": "#ebcc34",
"parse_kubeconfig": true,
"template": " ⎈ {{.Context}}{{if .Namespace}} :: {{.Namespace}}{{end}} "
},
{
"type": "aws",
"style": "plain",
"foreground": "#ffffff",
"background": "#FFA400",
"template": "  {{.Profile}}{{if .Region}}@{{.Region}}{{end}}"
}
],
"type": "prompt"
},
{
"alignment": "left",
"newline": true,
"segments": [
{
"foreground": "#63F08C",
"style": "plain",
"template": "\u279c ",
"type": "text"
}
],
"type": "prompt"
}
],
"tooltips": [
{
"type": "git",
"tips": [
"git",
"g"
],
"style": "diamond",
"foreground": "#193549",
"background": "#fffb38",
"leading_diamond": "",
"trailing_diamond": "î‚´",
"template": "{{ .HEAD }}{{ if .Staging.Changed }} \uF046 {{ .Staging.String }}{{ end }}{{ if and (.Working.Changed) (.Staging.Changed) }} |{{ end }}{{ if .Working.Changed }} \uF044 {{ .Working.String }}{{ end }}",
"properties": {
"fetch_status": true,
"fetch_upstream_icon": true
}
}
],
"version": 2
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment