Skip to content

Instantly share code, notes, and snippets.

@utarn
Created July 16, 2022 00:03
Show Gist options
  • Save utarn/d6673050eb6c1a6c19f05d8316ab1c40 to your computer and use it in GitHub Desktop.
Save utarn/d6673050eb6c1a6c19f05d8316ab1c40 to your computer and use it in GitHub Desktop.
oh my posh on macos/windows
# install oh-my-posh using brew
# eval "$(oh-my-posh init zsh --config ~/shell.json)"
# eval "$(oh-my-posh completion zsh)"
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"final_space": true,
"blocks": [
{
"type": "prompt",
"alignment": "left",
"segments": [
{
"type": "session",
"style": "diamond",
"foreground": "#ffffff",
"background": "#9A348E",
"leading_diamond": "\uE0B6",
"trailing_diamond": "",
"properties": {
"prefix": "",
"display_host": false,
"user_info_separator": "<#ffea00 >\uf1fa</>",
"display_default": false,
"user_color": "#ffea00",
"host_color": "#2EEFBF",
"postfix": "<#ffea00> \ue0b1</>"
}
},
{
"type": "path",
"style": "powerline",
"powerline_symbol": "\uE0B0",
"foreground": "#ffffff",
"background": "#DA627D",
"properties": {
"style": "full"
}
},
{
"type": "git",
"style": "diamond",
"foreground": "#ffea00",
"background": "#2f2f2f",
"properties": {
"display_stash_count": true,
"display_upstream_icon": true,
"display_status": true,
"status_colors_enabled": true,
"color_background": false,
"local_changes_color": "#ffea00",
"working_color": "#E84855",
"staging_color": "#2FDA4E",
"ahead_color": "#2EC4B6",
"behind_color": "#8A4FFF",
"prefix": "<#ffea00>\ue0b1 </>"
}
},
{
"type": "dotnet",
"style": "powerline",
"powerline_symbol": "",
"foreground": "#000000",
"background": "#00ffff",
"properties": {
"prefix": " \uE77F "
}
},
{
"type": "dart",
"style": "powerline",
"powerline_symbol": "\uE0B0",
"foreground": "#ffffff",
"background": "#06A4CE",
"properties": {
"prefix": " \uE798 "
}
},
{
"type": "time",
"style": "diamond",
"trailing_diamond": "\uE0B0",
"foreground": "#ffffff",
"background": "#33658A",
"properties": {
"prefix": " \u2665 ",
"time_format": "15:04"
}
}
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment