Skip to content

Instantly share code, notes, and snippets.

@danielbrasc
Created October 17, 2024 15:27
Show Gist options
  • Select an option

  • Save danielbrasc/e572a89ab8a360556de5db7ccf884e1a to your computer and use it in GitHub Desktop.

Select an option

Save danielbrasc/e572a89ab8a360556de5db7ccf884e1a to your computer and use it in GitHub Desktop.
Borrowshell
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"blocks": [
{
"alignment": "left",
"segments": [
{
"foreground": "lightYellow",
"style": "plain",
"template": "{{ .UserName }} ",
"type": "session"
},
{
"foreground": "#63cde8",
"properties": {
"style": "full"
},
"style": "plain",
"template": "{{ .Path }}/ ",
"type": "path"
},
{
"foreground": "#ff94df",
"properties": {
"fetch_status": true,
"branch_icon": " <#ff94df><b>\ue0a0 </b></>"
},
"style": "plain",
"template": "<#ffffff>on</> {{ .HEAD }}{{if .BranchStatus }} {{ .BranchStatus }}{{ end }}{{ 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": "<#ffffff>via</> \ue781 {{ if .PackageManagerIcon }}{{ .PackageManagerIcon }} {{ end }}{{ .Full }} ",
"type": "node"
}
],
"type": "prompt"
},
{
"alignment": "right",
"segments": [
{
"foreground": "#85C980",
"style": "diamond",
"template": "RAM:{{ (div ((sub .PhysicalTotalMemory .PhysicalFreeMemory)|float64) 1073741824.0) }}/{{ (div .PhysicalTotalMemory 1073741824.0) }}GB ",
"trailing_diamond": " ",
"type": "sysinfo"
},
{
"foreground": "#ffffff",
"leading_diamond": "\u250b",
"properties": {
"style": "roundrock",
"threshold": 0
},
"style": "diamond",
"template": " {{ .FormattedMs }} ",
"type": "executiontime"
}
],
"type": "prompt"
},
{
"alignment": "left",
"newline": true,
"segments": [
{
"foreground": "lightYellow",
"style": "plain",
"template": "\u2b9e ",
"type": "text"
}
],
"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