mirror of
https://github.com/bartvdbraak/dotfiles.git
synced 2025-04-27 06:31:20 +00:00
Add oh-my-posh config theme
This commit is contained in:
parent
e0d3db3daf
commit
b743abcde5
2 changed files with 157 additions and 0 deletions
71
oh-my-posh/theme.json
Normal file
71
oh-my-posh/theme.json
Normal file
|
@ -0,0 +1,71 @@
|
|||
{
|
||||
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
|
||||
"blocks": [
|
||||
{
|
||||
"alignment": "left",
|
||||
"segments": [
|
||||
{
|
||||
"foreground": "#ffffff",
|
||||
"style": "plain",
|
||||
"template": "<#C591E8>\u276f</><#69FF94>\u276f</> ",
|
||||
"type": "text"
|
||||
},
|
||||
{
|
||||
"foreground": "#56B6C2",
|
||||
"properties": {
|
||||
"style": "folder"
|
||||
},
|
||||
"style": "plain",
|
||||
"template": "{{ .Path }} ",
|
||||
"type": "path"
|
||||
},
|
||||
{
|
||||
"foreground": "#D0666F",
|
||||
"properties": {
|
||||
"branch_icon": ""
|
||||
},
|
||||
"style": "plain",
|
||||
"template": "<#5FAAE8>git:(</>{{ .HEAD }}<#5FAAE8>)</>",
|
||||
"type": "git"
|
||||
},
|
||||
{
|
||||
"foreground": "#DCB977",
|
||||
"style": "plain",
|
||||
"template": " \uf119 ",
|
||||
"type": "status"
|
||||
}
|
||||
],
|
||||
"type": "prompt"
|
||||
},
|
||||
{
|
||||
"alignment": "right",
|
||||
"segments": [
|
||||
{
|
||||
"foreground": "#ffffff",
|
||||
"properties": {
|
||||
"command": "git log --pretty=format:%cr -1 || date +%H:%M:%S",
|
||||
"shell": "bash"
|
||||
},
|
||||
"style": "plain",
|
||||
"template": " {{ .Output }} ",
|
||||
"type": "command"
|
||||
}
|
||||
],
|
||||
"type": "prompt"
|
||||
},
|
||||
{
|
||||
"alignment": "left",
|
||||
"newline": true,
|
||||
"segments": [
|
||||
{
|
||||
"foreground": "#ffffff",
|
||||
"style": "plain",
|
||||
"template": "\uf441 ",
|
||||
"type": "text"
|
||||
}
|
||||
],
|
||||
"type": "prompt"
|
||||
}
|
||||
],
|
||||
"version": 2
|
||||
}
|
86
oh-my-posh/theme.toml
Normal file
86
oh-my-posh/theme.toml
Normal file
|
@ -0,0 +1,86 @@
|
|||
#:schema https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json
|
||||
|
||||
version = 2
|
||||
|
||||
[[blocks]]
|
||||
type = 'prompt'
|
||||
alignment = 'left'
|
||||
|
||||
[[blocks.segments]]
|
||||
type = 'text'
|
||||
style = 'plain'
|
||||
template = '<#C591E8>❯</><#69FF94>❯</> '
|
||||
background = ''
|
||||
foreground = '#ffffff'
|
||||
Text = ''
|
||||
Duration = 0
|
||||
NameLength = 0
|
||||
|
||||
[[blocks.segments]]
|
||||
type = 'path'
|
||||
style = 'plain'
|
||||
template = '{{ .Path }} '
|
||||
background = ''
|
||||
foreground = '#56B6C2'
|
||||
Text = ''
|
||||
Duration = 0
|
||||
NameLength = 0
|
||||
|
||||
[blocks.segments.properties]
|
||||
style = 'folder'
|
||||
|
||||
[[blocks.segments]]
|
||||
type = 'git'
|
||||
style = 'plain'
|
||||
template = '<#5FAAE8>git:(</>{{ .HEAD }}<#5FAAE8>)</>'
|
||||
background = ''
|
||||
foreground = '#D0666F'
|
||||
Text = ''
|
||||
Duration = 0
|
||||
NameLength = 0
|
||||
|
||||
[blocks.segments.properties]
|
||||
branch_icon = ''
|
||||
|
||||
[[blocks.segments]]
|
||||
type = 'status'
|
||||
style = 'plain'
|
||||
template = ' '
|
||||
background = ''
|
||||
foreground = '#DCB977'
|
||||
Text = ''
|
||||
Duration = 0
|
||||
NameLength = 0
|
||||
|
||||
[[blocks]]
|
||||
type = 'prompt'
|
||||
alignment = 'right'
|
||||
|
||||
[[blocks.segments]]
|
||||
type = 'command'
|
||||
style = 'plain'
|
||||
template = ' {{ .Output }} '
|
||||
background = ''
|
||||
foreground = '#ffffff'
|
||||
Text = ''
|
||||
Duration = 0
|
||||
NameLength = 0
|
||||
|
||||
[blocks.segments.properties]
|
||||
command = 'git log --pretty=format:%cr -1 || date +%H:%M:%S'
|
||||
shell = 'bash'
|
||||
|
||||
[[blocks]]
|
||||
type = 'prompt'
|
||||
alignment = 'left'
|
||||
newline = true
|
||||
|
||||
[[blocks.segments]]
|
||||
type = 'text'
|
||||
style = 'plain'
|
||||
template = ' '
|
||||
background = ''
|
||||
foreground = '#ffffff'
|
||||
Text = ''
|
||||
Duration = 0
|
||||
NameLength = 0
|
Loading…
Reference in a new issue