Skip to content

Instantly share code, notes, and snippets.

@tsukumijima
Last active July 7, 2021 18:23
Show Gist options
  • Save tsukumijima/14354560ee91739a9d3e2238c1f03f91 to your computer and use it in GitHub Desktop.
Save tsukumijima/14354560ee91739a9d3e2238c1f03f91 to your computer and use it in GitHub Desktop.
oh-my-posh3 の自分用カスタムテーマ
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh3/main/themes/schema.json",
"console_title": true,
"console_title_style": "template",
"console_title_template": "{{.Shell}} : {{.Folder}}",
"blocks": [
{
"type": "prompt",
"alignment": "left",
"segments": [
{
"type": "session",
"style": "powerline",
"foreground": "#E1E4EB",
"background": "#1689B1",
"properties": {
"ssh_icon": "@",
"display_user": false
}
},
{
"type": "root",
"style": "powerline",
"foreground": "#FFEE58",
"background": "#546E7A",
"properties": {
"root_icon": "\uF0E7"
}
},
{
"type": "path",
"style": "powerline",
"powerline_symbol": "\uE0B0",
"foreground": "#D2D2D2",
"background": "#3A3A3A",
"properties": {
"style": "agnoster_full",
"folder_separator_icon": " \uE0B1 ",
"mapped_locations": [
["\\\\", ""]
]
}
},
{
"type": "git",
"style": "powerline",
"powerline_symbol": "\uE0B0",
"foreground": "#193549",
"background": "#95ffa4"
},
{
"type": "exit",
"style": "powerline",
"powerline_symbol": "\uE0B0",
"foreground": "#ffffff",
"background": "#ff8080"
}
]
},
{
"type": "prompt",
"alignment": "right",
"segments": [
{
"type": "time",
"style": "diamond",
"foreground": "#26C6DA",
"leading_diamond": "<#26C6DA>|</>",
"properties": {
"time_format": "15:04",
"postfix": " \uF017 "
}
}
]
},
{
"type": "newline"
},
{
"type": "prompt",
"alignment": "left",
"segments": [
{
"type": "exit",
"style": "plain",
"foreground": "#D4E157",
"properties": {
"prefix": "\u276F",
"always_enabled": true,
"error_color": "#FF5252",
"display_exit_code": false
}
}
]
}
],
"final_space": true
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment