Added dev environments through flakes + edit and flake nushell commands
This commit is contained in:
parent
84bc5de209
commit
b85918d3b1
10 changed files with 179 additions and 309 deletions
|
|
@ -1,165 +0,0 @@
|
|||
console_title_template = '{{ .Shell }} in {{ .Folder }}'
|
||||
version = 3
|
||||
final_space = true
|
||||
|
||||
[palette]
|
||||
black = '#262B44'
|
||||
blue = '#4B95E9'
|
||||
green = '#59C9A5'
|
||||
orange = '#303C68'
|
||||
red = '#D81E5B'
|
||||
white = '#E0DEF4'
|
||||
yellow = '#92D4FE'
|
||||
|
||||
[secondary_prompt]
|
||||
template = '<p:yellow,transparent></><,p:yellow> > </><p:yellow,transparent></> '
|
||||
foreground = 'p:black'
|
||||
background = 'transparent'
|
||||
|
||||
[transient_prompt]
|
||||
template = '<p:yellow,transparent></><,p:yellow> {{ .Folder }} </><p:yellow,transparent></> '
|
||||
foreground = 'p:black'
|
||||
background = 'transparent'
|
||||
|
||||
[upgrade]
|
||||
source = 'cdn'
|
||||
interval = '168h'
|
||||
auto = false
|
||||
notice = false
|
||||
|
||||
[[tooltips]]
|
||||
leading_diamond = ''
|
||||
trailing_diamond = ''
|
||||
template = ' {{ .Profile }}{{ if .Region }}@{{ .Region }}{{ end }} '
|
||||
foreground = 'p:white'
|
||||
background = 'p:orange'
|
||||
type = 'aws'
|
||||
style = 'diamond'
|
||||
tips = ['aws']
|
||||
|
||||
[tooltips.properties]
|
||||
display_default = true
|
||||
|
||||
[[tooltips]]
|
||||
leading_diamond = ''
|
||||
trailing_diamond = ''
|
||||
template = ' {{ .Name }} '
|
||||
foreground = 'p:white'
|
||||
background = 'p:blue'
|
||||
type = 'az'
|
||||
style = 'diamond'
|
||||
tips = ['az']
|
||||
|
||||
[tooltips.properties]
|
||||
display_default = true
|
||||
|
||||
[[blocks]]
|
||||
type = 'prompt'
|
||||
alignment = 'left'
|
||||
|
||||
[[blocks.segments]]
|
||||
leading_diamond = ''
|
||||
trailing_diamond = ''
|
||||
template = ' {{ if .SSHSession }} {{ end }}{{ .UserName }} '
|
||||
foreground = 'p:black'
|
||||
background = 'p:yellow'
|
||||
type = 'session'
|
||||
style = 'diamond'
|
||||
|
||||
[[blocks.segments]]
|
||||
template = ' {{ path .Path .Location }} '
|
||||
foreground = 'p:white'
|
||||
powerline_symbol = ''
|
||||
background = 'p:orange'
|
||||
type = 'path'
|
||||
style = 'powerline'
|
||||
|
||||
[blocks.segments.properties]
|
||||
style = 'folder'
|
||||
|
||||
[[blocks.segments]]
|
||||
template = ' {{ if .UpstreamURL }}{{ url .UpstreamIcon .UpstreamURL }} {{ end }}{{ .HEAD }}{{if .BranchStatus }} {{ .BranchStatus }}{{ end }}{{ if .Working.Changed }} {{ .Working.String }}{{ end }}{{ if .Staging.Changed }} {{ .Staging.String }}{{ end }} '
|
||||
foreground = 'p:black'
|
||||
powerline_symbol = ''
|
||||
background = 'p:green'
|
||||
type = 'git'
|
||||
style = 'powerline'
|
||||
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 }}']
|
||||
|
||||
[blocks.segments.properties]
|
||||
branch_template = '{{ trunc 25 .Branch }}'
|
||||
fetch_status = true
|
||||
fetch_upstream_icon = true
|
||||
|
||||
[[blocks.segments]]
|
||||
template = ' '
|
||||
foreground = 'p:white'
|
||||
powerline_symbol = ''
|
||||
background = 'p:yellow'
|
||||
type = 'root'
|
||||
style = 'powerline'
|
||||
|
||||
[[blocks.segments]]
|
||||
leading_diamond = '<transparent,background></>'
|
||||
trailing_diamond = ''
|
||||
template = ' {{ if gt .Code 0 }}{{ else }}{{ end }} '
|
||||
foreground = 'p:white'
|
||||
background = 'p:blue'
|
||||
type = 'status'
|
||||
style = 'diamond'
|
||||
background_templates = ['{{ if gt .Code 0 }}p:red{{ end }}']
|
||||
|
||||
[blocks.segments.properties]
|
||||
always_enabled = true
|
||||
|
||||
[[blocks]]
|
||||
type = 'rprompt'
|
||||
|
||||
[[blocks.segments]]
|
||||
template = ' '
|
||||
foreground = 'p:green'
|
||||
background = 'transparent'
|
||||
type = 'node'
|
||||
style = 'plain'
|
||||
|
||||
[blocks.segments.properties]
|
||||
display_mode = 'files'
|
||||
fetch_package_manager = false
|
||||
home_enabled = false
|
||||
|
||||
[[blocks.segments]]
|
||||
template = ' '
|
||||
foreground = 'p:blue'
|
||||
background = 'transparent'
|
||||
type = 'go'
|
||||
style = 'plain'
|
||||
|
||||
[blocks.segments.properties]
|
||||
fetch_version = false
|
||||
|
||||
[[blocks.segments]]
|
||||
template = ' '
|
||||
foreground = 'p:yellow'
|
||||
background = 'transparent'
|
||||
type = 'python'
|
||||
style = 'plain'
|
||||
|
||||
[blocks.segments.properties]
|
||||
display_mode = 'files'
|
||||
fetch_version = false
|
||||
fetch_virtual_env = false
|
||||
|
||||
[[blocks.segments]]
|
||||
template = 'in <p:blue><b>{{ .Name }}</b></> '
|
||||
foreground = 'p:white'
|
||||
background = 'transparent'
|
||||
type = 'shell'
|
||||
style = 'plain'
|
||||
|
||||
[[blocks.segments]]
|
||||
template = 'at <p:blue><b>{{ .CurrentDate | date "15:04:05" }}</b></>'
|
||||
foreground = 'p:white'
|
||||
background = 'transparent'
|
||||
type = 'time'
|
||||
style = 'plain'
|
||||
|
|
@ -1,74 +0,0 @@
|
|||
#: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'
|
||||
newline = true
|
||||
|
||||
[[blocks.segments]]
|
||||
type = 'path'
|
||||
style = 'plain'
|
||||
background = 'transparent'
|
||||
foreground = 'blue'
|
||||
template = '{{ .Path }}'
|
||||
|
||||
[blocks.segments.properties]
|
||||
style = 'full'
|
||||
|
||||
[[blocks.segments]]
|
||||
type = 'git'
|
||||
style = 'plain'
|
||||
foreground = 'p:grey'
|
||||
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 }}'
|
||||
|
||||
[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}}magenta{{end}}",
|
||||
]
|
||||
background = 'transparent'
|
||||
template = '❯'
|
||||
|
||||
[transient_prompt]
|
||||
foreground_templates = [
|
||||
"{{if gt .Code 0}}red{{end}}",
|
||||
"{{if eq .Code 0}}magenta{{end}}",
|
||||
]
|
||||
background = 'transparent'
|
||||
template = '❯ '
|
||||
|
||||
[secondary_prompt]
|
||||
foreground = 'magenta'
|
||||
background = 'transparent'
|
||||
template = '❯❯ '
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 564 B |
Loading…
Add table
Add a link
Reference in a new issue