Kitty, hyfetch, neofetch, ohmyposh, zsh
This commit is contained in:
185
.config/ohmyposh/base.json
Normal file
185
.config/ohmyposh/base.json
Normal file
@ -0,0 +1,185 @@
|
||||
{
|
||||
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
|
||||
"version": 2,
|
||||
"final_space": true,
|
||||
"console_title_template": "{{ .Shell }} in {{ .Folder }}",
|
||||
"blocks": [
|
||||
{
|
||||
"type": "prompt",
|
||||
"alignment": "left",
|
||||
"segments": [
|
||||
{
|
||||
"type": "session",
|
||||
"style": "diamond",
|
||||
"leading_diamond": "\ue0b6",
|
||||
"trailing_diamond": "\ue0b0",
|
||||
"template": " {{ if .SSHSession }}\ueba9 {{ end }}{{ .UserName }} ",
|
||||
"background": "p:yellow",
|
||||
"foreground": "p:black"
|
||||
},
|
||||
{
|
||||
"type": "path",
|
||||
"style": "powerline",
|
||||
"powerline_symbol": "\ue0b0",
|
||||
"template": " \uea83 {{ path .Path .Location }} ",
|
||||
"properties": {
|
||||
"style": "folder"
|
||||
},
|
||||
"background": "p:orange",
|
||||
"foreground": "p:white"
|
||||
},
|
||||
{
|
||||
"type": "git",
|
||||
"style": "powerline",
|
||||
"powerline_symbol": "\ue0b0",
|
||||
"foreground_templates": [
|
||||
"{{ if or (.Working.Changed) (.Staging.Changed) }}p:black{{ end }}",
|
||||
"{{ if and (gt .Ahead 0) (gt .Behind 0) }}p:white{{ end }}",
|
||||
"{{ if gt .Ahead 0 }}p:white{{ end }}"
|
||||
],
|
||||
"background_templates": [
|
||||
"{{ if or (.Working.Changed) (.Staging.Changed) }}p:yellow{{ end }}",
|
||||
"{{ if and (gt .Ahead 0) (gt .Behind 0) }}p:red{{ end }}",
|
||||
"{{ if gt .Ahead 0 }}#49416D{{ end }}",
|
||||
"{{ if gt .Behind 0 }}#7A306C{{ end }}"
|
||||
],
|
||||
"template": " {{ if .UpstreamURL }}{{ url .UpstreamIcon .UpstreamURL }} {{ end }}{{ .HEAD }}{{if .BranchStatus }} {{ .BranchStatus }}{{ end }}{{ if .Working.Changed }} \uf044 {{ .Working.String }}{{ end }}{{ if .Staging.Changed }} \uf046 {{ .Staging.String }}{{ end }} ",
|
||||
"properties": {
|
||||
"branch_max_length": 25,
|
||||
"fetch_status": true,
|
||||
"fetch_upstream_icon": true
|
||||
},
|
||||
"background": "p:green",
|
||||
"foreground": "p:black"
|
||||
},
|
||||
{
|
||||
"type": "root",
|
||||
"style": "powerline",
|
||||
"powerline_symbol": "\ue0b0",
|
||||
"template": " \uf0e7 ",
|
||||
"background": "p:yellow",
|
||||
"foreground": "p:white"
|
||||
},
|
||||
{
|
||||
"type": "status",
|
||||
"style": "diamond",
|
||||
"background_templates": [
|
||||
"{{ if gt .Code 0 }}p:red{{ end }}"
|
||||
],
|
||||
"leading_diamond": "<transparent,background>\ue0b0</>",
|
||||
"trailing_diamond": "\ue0b4",
|
||||
"template": " {{ if gt .Code 0 }}\uf00d{{ else }}\uf00c{{ end }} ",
|
||||
"properties": {
|
||||
"always_enabled": true
|
||||
},
|
||||
"background": "p:blue",
|
||||
"foreground": "p:white"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "rprompt",
|
||||
"segments": [
|
||||
{
|
||||
"type": "node",
|
||||
"style": "plain",
|
||||
"template": "\ue718 ",
|
||||
"properties": {
|
||||
"display_mode": "files",
|
||||
"fetch_package_manager": false,
|
||||
"home_enabled": false
|
||||
},
|
||||
"background": "transparent",
|
||||
"foreground": "p:green"
|
||||
},
|
||||
{
|
||||
"type": "go",
|
||||
"style": "plain",
|
||||
"template": "\ue626 ",
|
||||
"properties": {
|
||||
"fetch_version": false
|
||||
},
|
||||
"background": "transparent",
|
||||
"foreground": "p:blue"
|
||||
},
|
||||
{
|
||||
"type": "python",
|
||||
"style": "plain",
|
||||
"template": "\ue235 ",
|
||||
"properties": {
|
||||
"display_mode": "files",
|
||||
"fetch_version": false,
|
||||
"fetch_virtual_env": false
|
||||
},
|
||||
"background": "transparent",
|
||||
"foreground": "p:yellow"
|
||||
},
|
||||
{
|
||||
"type": "shell",
|
||||
"style": "plain",
|
||||
"template": "in <p:blue><b>{{ .Name }}</b></> ",
|
||||
"background": "transparent",
|
||||
"foreground": "p:white"
|
||||
},
|
||||
{
|
||||
"type": "time",
|
||||
"style": "plain",
|
||||
"template": "at <p:blue><b>{{ .CurrentDate | date \"15:04:05\" }}</b></>",
|
||||
"background": "transparent",
|
||||
"foreground": "p:white"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"tooltips": [
|
||||
{
|
||||
"type": "aws",
|
||||
"tips": [
|
||||
"aws"
|
||||
],
|
||||
"style": "diamond",
|
||||
"leading_diamond": "\ue0b0",
|
||||
"trailing_diamond": "\ue0b4",
|
||||
"template": " \ue7ad {{ .Profile }}{{ if .Region }}@{{ .Region }}{{ end }} ",
|
||||
"properties": {
|
||||
"display_default": true
|
||||
},
|
||||
"background": "p:orange",
|
||||
"foreground": "p:white"
|
||||
},
|
||||
{
|
||||
"type": "az",
|
||||
"tips": [
|
||||
"az"
|
||||
],
|
||||
"style": "diamond",
|
||||
"leading_diamond": "\ue0b0",
|
||||
"trailing_diamond": "\ue0b4",
|
||||
"template": " \uebd8 {{ .Name }} ",
|
||||
"properties": {
|
||||
"display_default": true
|
||||
},
|
||||
"background": "p:blue",
|
||||
"foreground": "p:white"
|
||||
}
|
||||
],
|
||||
"transient_prompt": {
|
||||
"template": "<p:yellow,transparent>\ue0b6</><,p:yellow> {{ .Folder }} </><p:yellow,transparent>\ue0b0</> ",
|
||||
"background": "transparent",
|
||||
"foreground": "p:black"
|
||||
},
|
||||
"secondary_prompt": {
|
||||
"template": "<p:yellow,transparent>\ue0b6</><,p:yellow> > </><p:yellow,transparent>\ue0b0</> ",
|
||||
"background": "transparent",
|
||||
"foreground": "p:black"
|
||||
},
|
||||
"palette": {
|
||||
"black": "#262B44",
|
||||
"blue": "#4B95E9",
|
||||
"green": "#59C9A5",
|
||||
"orange": "#F07623",
|
||||
"red": "#D81E5B",
|
||||
"white": "#E0DEF4",
|
||||
"yellow": "#F3AE35"
|
||||
}
|
||||
}
|
79
.config/ohmyposh/zen.toml
Normal file
79
.config/ohmyposh/zen.toml
Normal file
@ -0,0 +1,79 @@
|
||||
console_title_template = '{{ .Shell }} in {{ .Folder }}'
|
||||
version = 3
|
||||
final_space = true
|
||||
|
||||
[secondary_prompt]
|
||||
template = '❯❯ '
|
||||
foreground = 'green'
|
||||
background = 'transparent'
|
||||
|
||||
[transient_prompt]
|
||||
template = '❯ '
|
||||
background = 'transparent'
|
||||
foreground_templates = ['{{if gt .Code 0}}red{{end}}', '{{if eq .Code 0}}green{{end}}']
|
||||
|
||||
[[blocks]]
|
||||
type = 'prompt'
|
||||
alignment = 'left'
|
||||
newline = true
|
||||
|
||||
[[blocks.segments]]
|
||||
template = '{{ .UserName }}'
|
||||
foreground = 'green'
|
||||
background = 'transparent'
|
||||
type = 'text'
|
||||
style = 'plain'
|
||||
|
||||
[[blocks.segments]]
|
||||
template = '@{{ .HostName }}'
|
||||
foreground = 'white'
|
||||
background = 'transparent'
|
||||
type = 'text'
|
||||
style = 'plain'
|
||||
|
||||
[[blocks.segments]]
|
||||
foreground = 'green'
|
||||
background = 'transparent'
|
||||
type = 'path'
|
||||
style = 'plain'
|
||||
|
||||
[blocks.segments.properties]
|
||||
style = 'full'
|
||||
|
||||
[[blocks.segments]]
|
||||
template = ' {{ .HEAD }}{{ if or (.Working.Changed) (.Staging.Changed) }}*{{ end }} <cyan>{{ if gt .Behind 0 }}⇣{{ end }}{{ if gt .Ahead 0 }}⇡{{ end }}</>'
|
||||
foreground = '#6c6c6c'
|
||||
background = 'transparent'
|
||||
type = 'git'
|
||||
style = 'plain'
|
||||
|
||||
[blocks.segments.properties]
|
||||
branch_icon = ''
|
||||
commit_icon = '@'
|
||||
fetch_status = true
|
||||
|
||||
[[blocks]]
|
||||
type = 'rprompt'
|
||||
overflow = 'hidden'
|
||||
|
||||
[[blocks.segments]]
|
||||
template = '{{ .FormattedMs }}'
|
||||
foreground = 'yellow'
|
||||
background = 'transparent'
|
||||
type = 'executiontime'
|
||||
style = 'plain'
|
||||
|
||||
[blocks.segments.properties]
|
||||
threshold = 5000
|
||||
|
||||
[[blocks]]
|
||||
type = 'prompt'
|
||||
alignment = 'left'
|
||||
newline = true
|
||||
|
||||
[[blocks.segments]]
|
||||
template = '❯'
|
||||
background = 'transparent'
|
||||
type = 'text'
|
||||
style = 'plain'
|
||||
foreground_templates = ['{{if gt .Code 0}}red{{end}}', '{{if eq .Code 0}}green{{end}}']
|
86
.config/ohmyposh/zen.toml.bak
Normal file
86
.config/ohmyposh/zen.toml.bak
Normal file
@ -0,0 +1,86 @@
|
||||
version = 2
|
||||
final_space = true
|
||||
console_title_template = '{{ .Shell }} in {{ .Folder }}'
|
||||
|
||||
[[blocks]]
|
||||
type = 'prompt'
|
||||
alignment = 'left'
|
||||
newline = true
|
||||
|
||||
[[blocks.segments]]
|
||||
type = 'text'
|
||||
style = 'plain'
|
||||
background = 'transparent'
|
||||
foreground = 'green'
|
||||
template = '{{ .UserName }}'
|
||||
|
||||
[[blocks.segments]]
|
||||
type = 'text'
|
||||
style = 'plain'
|
||||
background = 'transparent'
|
||||
foreground = 'white'
|
||||
template = '@{{ .HostName }}'
|
||||
|
||||
[[blocks.segments]]
|
||||
type = 'path'
|
||||
style = 'plain'
|
||||
background = 'transparent'
|
||||
foreground = 'green'
|
||||
|
||||
[blocks.segments.properties]
|
||||
style = 'full'
|
||||
|
||||
[[blocks.segments]]
|
||||
type = 'git'
|
||||
style = 'plain'
|
||||
foreground = '#6c6c6c'
|
||||
background = 'transparent'
|
||||
template = ' {{ .HEAD }}{{ if or (.Working.Changed) (.Staging.Changed) }}*{{ end }} <cyan>{{ if gt .Behind 0 }}⇣{{ end }}{{ if gt .Ahead 0 }}⇡{{ end }}</>'
|
||||
|
||||
[blocks.segments.properties]
|
||||
branch_icon = ''
|
||||
commit_icon = '@'
|
||||
fetch_status = true
|
||||
|
||||
[[blocks]]
|
||||
type = 'rprompt'
|
||||
overflow = 'hidden'
|
||||
|
||||
[[blocks.segments]]
|
||||
type = 'executiontime'
|
||||
style = 'plain'
|
||||
foreground = 'yellow'
|
||||
background = 'transparent'
|
||||
template = '{{ .FormattedMs }}'
|
||||
#template = '{{ div .Ms 1000 }}s'
|
||||
|
||||
[blocks.segments.properties]
|
||||
threshold = 5000
|
||||
|
||||
[[blocks]]
|
||||
type = 'prompt'
|
||||
alignment = 'left'
|
||||
newline = true
|
||||
|
||||
[[blocks.segments]]
|
||||
type = 'text'
|
||||
style = 'plain'
|
||||
foreground_templates = [
|
||||
"{{if gt .Code 0}}red{{end}}",
|
||||
"{{if eq .Code 0}}green{{end}}"
|
||||
]
|
||||
background = 'transparent'
|
||||
template = '❯'
|
||||
|
||||
[transient_prompt]
|
||||
foreground_templates = [
|
||||
"{{if gt .Code 0}}red{{end}}",
|
||||
"{{if eq .Code 0}}green{{end}}"
|
||||
]
|
||||
background = 'transparent'
|
||||
template = '❯ '
|
||||
|
||||
[secondary_prompt]
|
||||
foreground = 'green'
|
||||
background = 'transparent'
|
||||
template = '❯❯ '
|
Reference in New Issue
Block a user