-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Status.Error does not reflect failed PowerShell cmdlets #6149
Copy link
Copy link
Closed
Labels
🐛 bugSomething isn't workingSomething isn't working
Description
Code of Conduct
- I agree to follow this project's Code of Conduct
What happened?
I wanted to add an update to my transient prompt to show red/green based on the error status of the last command.
Unfortunately, this didn't go as planned as {{ .Segments.Status.Error }} doesn't update when a PowerShell cmdlet fails. Like simply calling Get-ChildItem unknownfile. This only sets $? but not $LASTEXITCODE.
I tried to understand the relevant code in omp.ps1, but couldn't see if or what is not working.
It works for native executables like git without issues, as those set $LASTEXITCODE.
Theme
console_title_template = '{{ .Shell }} in {{ .Folder }}'
version = 3
[palette]
blue = '#268BD2'
cyan = '#2AA198'
green = '#859900'
magenta = '#D33682'
orange = '#CB4B16'
path-background = '#FF9248'
path-foreground = '#2D3436'
red = '#DC322F'
root-background = '#EF5350'
root-foreground = '#FFFB38'
shell-background = '#0077C2'
shell-foreground = '#FFFFFF'
violet = '#6C71C4'
yellow = '#B58900'
[valid_line]
background = 'transparent'
foreground = 'green'
template = '╰ '
[transient_prompt]
background = 'transparent'
foreground = '#21C7C7'
template = '─ {{ .Segments.Status.Error }}'
[error_line]
background = 'transparent'
foreground = 'red'
template = '╰ '
[[blocks]]
alignment = 'left'
type = 'prompt'
[[blocks.segments]]
background = 'p:shell-background'
foreground = 'p:shell-foreground'
leading_diamond = '╭─'
style = 'diamond'
template = '{{ .Name }} '
type = 'shell'
[blocks.segments.properties.mapped_shell_names]
bash = ''
pwsh = ''
[[blocks.segments]]
background = 'p:root-background'
foreground = 'p:root-foreground'
style = 'diamond'
template = '<parentBackground></> '
type = 'root'
[blocks.segments.properties]
cache_duration = 'none'
[[blocks.segments]]
background = 'p:path-background'
foreground = 'p:path-foreground'
powerline_symbol = ''
style = 'powerline'
template = ' {{ .Path }} '
type = 'path'
[blocks.segments.properties]
cache_duration = 'none'
folder_icon = ' '
folder_separator_icon = ' '
home_icon = ''
max_depth = 2
style = 'agnoster_short'
[blocks.segments.properties.mapped_locations]
'{{ .Env.GitBaseDirectory }}Azure/*' = ' '
'{{ .Env.GitBaseDirectory }}Bitbucket/*' = ' '
'{{ .Env.GitBaseDirectory }}GitHub/*' = ' '
[[blocks.segments]]
background = '#FFFB38'
background_templates = [
'{{ if or (.Working.Changed) (.Staging.Changed) }}#FFEB95{{ end }}',
'{{ if and (gt .Ahead 0) (gt .Behind 0) }}#C5E478{{ end }}',
'{{ if gt .Ahead 0 }}#C792EA{{ end }}',
'{{ if gt .Behind 0 }}#C792EA{{ end }}',
]
foreground = '#011627'
powerline_symbol = ''
style = 'powerline'
template = ' {{ .UpstreamIcon }}{{ .HEAD }}{{if .BranchStatus }} {{ .BranchStatus }}{{ end }}{{ if .Working.Changed }} {{ .Working.String }}{{ end }}{{ if and (.Working.Changed) (.Staging.Changed) }} |{{ end }}{{ if .Staging.Changed }}<#EF5350> {{ .Staging.String }}</>{{ end }} '
type = 'git'
[blocks.segments.properties]
branch_icon = ' '
cache_duration = 'none'
fetch_status = true
fetch_upstream_icon = true
[[blocks.segments]]
background = '#83769C'
foreground = '#FFFFFF'
style = 'diamond'
template = ' {{ .FormattedMs }} '
trailing_diamond = ''
type = 'executiontime'
[blocks.segments.properties]
always_enabled = true
cache_duration = 'none'
[[blocks]]
alignment = 'right'
type = 'prompt'
[[blocks.segments]]
type = 'node'
background = '#303030'
foreground = '#3C873A'
leading_diamond = ''
style = 'diamond'
template = ' {{ if .PackageManagerIcon }}{{ .PackageManagerIcon | trim }} {{ end }}{{ .Full }}'
trailing_diamond = ' '
[blocks.segments.properties]
cache_duration = 'none'
fetch_package_manager = true
npm_icon = ' <#CC3A3A></> '
yarn_icon = ' <#348CBA></>'
[[blocks.segments]]
type = 'python'
background = '#306998'
foreground = '#FFE873'
leading_diamond = ''
style = 'diamond'
template = ' {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }}'
trailing_diamond = ' '
[blocks.segments.properties]
cache_duration = '1h'
[[blocks.segments]]
background = '#0E0E0E'
foreground = '#0D6DA8'
leading_diamond = ''
style = 'diamond'
template = ' {{ if .Unsupported }}{{ else }}{{ .Full }}{{ end }}'
trailing_diamond = ' '
type = 'dotnet'
[blocks.segments.properties]
cache_duration = 'none'
[[blocks.segments]]
background = '#FFFFFF'
foreground = '#06AAD5'
leading_diamond = ''
style = 'diamond'
template = 'ﳑ {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }}'
trailing_diamond = ' '
type = 'go'
[blocks.segments.properties]
cache_duration = 'none'
[[blocks.segments]]
background = '#F3F0EC'
foreground = '#925837'
leading_diamond = ''
style = 'diamond'
template = ' {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }}'
trailing_diamond = ' '
type = 'rust'
[blocks.segments.properties]
cache_duration = 'none'
[[blocks.segments]]
background = '#FFFFFF'
foreground = '#CE092F'
leading_diamond = ' '
style = 'diamond'
template = ' {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }}'
trailing_diamond = ' '
type = 'angular'
[blocks.segments.properties]
cache_duration = 'none'
[[blocks.segments]]
background = '#1E293B'
foreground = '#FFFFFF'
leading_diamond = ' '
style = 'diamond'
template = '{{ if .Error }}{{ .Error }}{{ else }}Nx {{ .Full }}{{ end }}'
trailing_diamond = ' '
type = 'nx'
[blocks.segments.properties]
cache_duration = 'none'
[[blocks.segments]]
background = '#FFFFFF'
foreground = '#9C1006'
leading_diamond = ''
style = 'diamond'
template = ' {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }}'
trailing_diamond = ' '
type = 'ruby'
[blocks.segments.properties]
cache_duration = 'none'
[[blocks.segments]]
background = '#FFFFFF'
foreground = '#5398C2'
leading_diamond = ''
style = 'diamond'
template = '<#F5BF45></> {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }}'
trailing_diamond = ' '
type = 'azfunc'
[blocks.segments.properties]
cache_duration = 'none'
[[blocks.segments]]
background = '#316CE4'
foreground = '#FFFFFF'
leading_diamond = ''
style = 'diamond'
template = 'ﴱ {{.Context}}{{if .Namespace}} :: {{.Namespace}}{{end}}'
trailing_diamond = ''
type = 'kubectl'
[blocks.segments.properties]
cache_duration = 'none'
[[blocks.segments]]
background = '#B2BEC3'
foreground = '#222222'
leading_diamond = ''
style = 'diamond'
template = '{{ if .WSL }}WSL at {{ end }}{{.Icon}} <#40C4FF></>'
type = 'os'
[blocks.segments.properties]
cache_duration = 'none'
linux = ''
macos = ''
windows = ''
[[blocks.segments]]
background = '#40C4FF'
foreground = '#FFFFFF'
style = 'diamond'
template = ' {{ .CurrentDate | date .Format }}'
trailing_diamond = ''
type = 'time'
[blocks.segments.properties]
cache_duration = 'none'
time_format = '15:04:05'
[[blocks]]
alignment = 'left'
newline = true
type = 'prompt'
[[blocks.segments]]
foreground = '#21C7C7'
foreground_templates = [
'{{ if gt .Code 0 }}#EF5350{{ end }}',
]
style = 'plain'
template = '╰ {{ .Segments.Status.Error }}'
type = 'status'
[blocks.segments.properties]
always_enabled = true
cache_duration = 'none'What OS are you seeing the problem on?
Windows
Which shell are you using?
powershell
Log output
oh-my-posh debug --plain
Version: 24.19.0
Shell: pwsh (7.6.0-preview.2)
Prompt:
╭─ totkeks dotfiles main ≡ ?21 ~5 0ms 11:52:02
╰ false
Segments:
ConsoleTitle(true) - 0 ms
Shell(true) - 0 ms
Root(false) - 0 ms
Path(true) - 2 ms
Git(true) - 26 ms
Executiontime(true) - 0 ms
Node(false) - 0 ms
Python(false) - 3 ms
Dotnet(false) - 0 ms
Go(false) - 0 ms
Rust(false) - 0 ms
Angular(false) - 0 ms
Nx(false) - 1 ms
Ruby(false) - 0 ms
Azfunc(false) - 0 ms
Kubectl(false) - 0 ms
Os(true) - 0 ms
Time(true) - 0 ms
Status(true) - 0 ms
Run duration: 33.6586ms
Cache path: C:\Users\totkeks\AppData\Local\oh-my-posh
Config path: E:\GitHub\totkeks\dotfiles\dotfiles\.totkeks.omp.toml
Logs:
[DEBUG] 11:52:02.178 command.go:execute:989 → debug mode enabled
[DEBUG] 11:52:02.179 debug.go:40 → config set using POSH_THEME: E:\GitHub\totkeks\dotfiles\dotfiles\.totkeks.omp.toml
[TRACE] 11:52:02.179 debug.go() - 0s
[TRACE] 11:52:02.179 load.go:Load() - 0s
[TRACE] 11:52:02.179 debug.go() - 0s
[DEBUG] 11:52:02.179 debug.go:52 → plain mode enabled
[TRACE] 11:52:02.179 terminal.go() - 514.7µs
[DEBUG] 11:52:02.179 terminal.go:59 → loading cache file: C:\Users\totkeks\AppData\Local\oh-my-posh\omp.cache
[DEBUG] 11:52:02.179 terminal.go:59 → loading cache key: upgrade_check
[TRACE] 11:52:02.179 terminal.go(C:\Users\totkeks\AppData\Local\oh-my-posh\omp.cache) - 0s
[TRACE] 11:52:02.179 terminal.go() - 0s
[DEBUG] 11:52:02.179 terminal.go:59 → loading cache file: C:\Users\totkeks\AppData\Local\oh-my-posh\omp.cache.4a76ca35-3771-4105-8e01-aef11914ce57
[DEBUG] 11:52:02.179 terminal.go:59 → loading cache key: prompt_count_cache
[DEBUG] 11:52:02.179 terminal.go:59 → loading cache key: template_cache
[TRACE] 11:52:02.179 terminal.go(C:\Users\totkeks\AppData\Local\oh-my-posh\omp.cache.4a76ca35-3771-4105-8e01-aef11914ce57) - 0s
[TRACE] 11:52:02.179 terminal.go:Init() - 0s
[TRACE] 11:52:02.179 terminal.go() - 0s
[DEBUG] 11:52:02.179 terminal.go:Init:67 → E:\GitHub\totkeks\dotfiles
[TRACE] 11:52:02.179 terminal.go:Init() - 0s
[TRACE] 11:52:02.179 debug.go() - 514.7µs
[TRACE] 11:52:02.179 init.go:Init() - 0s
[TRACE] 11:52:02.179 cache.go:loadCache() - 0s
[TRACE] 11:52:02.179 cache.go:loadCache() - 0s
[DEBUG] 11:52:02.179 debug.go:61 → terminal program: Windows Terminal
[DEBUG] 11:52:02.179 debug.go:61 → terminal shell: shell
[DEBUG] 11:52:02.179 config.go:MakeColors:58 → NO DATA
[TRACE] 11:52:02.179 config.go:MakeColors(OMP_CACHE_DISABLED) - 0s
[TRACE] 11:52:02.179 colors_windows.go:GetAccentColor(HKEY_CURRENT_USER\Software\Microsoft\Windows\DWM\ColorizationColor) - 0s
[DEBUG] 11:52:02.179 colors_windows.go:GetAccentColor:19 → ColorizationColor(DWORD): 0xC40078D4
[TRACE] 11:52:02.179 colors.go:SetAccentColor() - 0s
[TRACE] 11:52:02.179 colors.go:MakeColors() - 0s
[TRACE] 11:52:02.180 debug.go:PrintDebug() - 0s
[DEBUG] 11:52:02.180 debug.go:PrintDebug:16 → 7.6.0-preview.2
[TRACE] 11:52:02.180 debug.go:PrintDebug(POSH_SHELL_VERSION) - 0s
[DEBUG] 11:52:02.180 debug.go:72 → segment: Title
[TRACE] 11:52:02.180 engine.go:getTitleTemplateText({{ .Shell }} in {{ .Folder }}) - 0s
[TRACE] 11:52:02.180 primary.go:needsPrimaryRightPrompt() - 0s
[DEBUG] 11:52:02.180 terminal.go:CursorPosition:583 → 18
[TRACE] 11:52:02.180 terminal.go:CursorPosition(POSH_CURSOR_LINE) - 0s
[DEBUG] 11:52:02.180 terminal.go:CursorPosition:587 → 1
[TRACE] 11:52:02.180 terminal.go:CursorPosition(POSH_CURSOR_COLUMN) - 0s
[TRACE] 11:52:02.180 primary.go:writePrimaryPrompt() - 0s
[TRACE] 11:52:02.180 primary.go:writePrimaryPrompt() - 0s
[TRACE] 11:52:02.180 segment.go:Execute() - 0s
[TRACE] 11:52:02.180 segment.go:Execute() - 0s
[DEBUG] 11:52:02.180 home.go:Home:26 → C:\Users\totkeks
[TRACE] 11:52:02.180 terminal.go:DirMatchesOneOf() - 0s
[DEBUG] 11:52:02.180 home.go:Home:26 → C:\Users\totkeks
[DEBUG] 11:52:02.180 segment.go:Execute:110 → segment: Executiontime
[TRACE] 11:52:02.180 terminal.go:DirMatchesOneOf() - 0s
[DEBUG] 11:52:02.180 segment.go:Execute:112 → no toggles found
[DEBUG] 11:52:02.180 segment.go:Execute:112 → no toggles found
[DEBUG] 11:52:02.180 executiontime.go:Enabled:55 → always_enabled: true
[TRACE] 11:52:02.180 executiontime.go:Enabled() - 0s
[DEBUG] 11:52:02.180 executiontime.go:Enabled:57 → threshold: 500.000000
[DEBUG] 11:52:02.180 executiontime.go:Enabled:61 → austin
[DEBUG] 11:52:02.180 shell.go:Enabled:26 → mapped_shell_names: map[bash: pwsh:]
[TRACE] 11:52:02.180 shell.go:Enabled() - 0s
[TRACE] 11:52:02.180 shell.go:Enabled() - 0s
[DEBUG] 11:52:02.180 home.go:Home:26 → C:\Users\totkeks
[TRACE] 11:52:02.180 terminal.go:DirMatchesOneOf() - 0s
[DEBUG] 11:52:02.180 segment.go:Execute:110 → segment: Git
[TRACE] 11:52:02.180 segment.go:Execute() - 0s
[DEBUG] 11:52:02.180 segment.go:Execute:112 → no toggles found
[DEBUG] 11:52:02.180 home.go:Home:26 → C:\Users\totkeks
[TRACE] 11:52:02.180 terminal.go:DirMatchesOneOf() - 0s
[DEBUG] 11:52:02.180 segment.go:Execute:110 → segment: Root
[DEBUG] 11:52:02.180 segment.go:Execute:112 → no toggles found
[TRACE] 11:52:02.180 scm.go:hasCommand() - 0s
[TRACE] 11:52:02.180 segment.go:Execute() - 0s
[DEBUG] 11:52:02.180 home.go:Home:26 → C:\Users\totkeks
[TRACE] 11:52:02.180 terminal.go:DirMatchesOneOf() - 0s
[DEBUG] 11:52:02.180 segment.go:Execute:110 → segment: Path
[DEBUG] 11:52:02.180 segment.go:Execute:112 → no toggles found
[TRACE] 11:52:02.180 root.go:Enabled() - 0s
[DEBUG] 11:52:02.180 path.go:147 → display_cygpath: false
[TRACE] 11:52:02.180 path.go:setPaths() - 0s
[TRACE] 11:52:02.180 path.go:setPaths() - 0s
[TRACE] 11:52:02.180 path.go:setPaths() - 0s
[TRACE] 11:52:02.180 path.go:setPaths() - 0s
[TRACE] 11:52:02.180 path.go:parsePath() - 0s
[DEBUG] 11:52:02.180 path.go:setMappedLocations:557 → mapped_locations_enabled: true
[DEBUG] 11:52:02.180 path.go:setMappedLocations:558 →
[TRACE] 11:52:02.180 segment.go:string({{ .Name }} ) - 513.3µs
[DEBUG] 11:52:02.180 path.go:setMappedLocations:559 →
[TRACE] 11:52:02.180 segment.go:resolve(diamond) - 0s
[DEBUG] 11:52:02.180 home.go:Home:26 → C:\Users\totkeks
[TRACE] 11:52:02.180 clean.go:Clean() - 0s
[TRACE] 11:52:02.180 segment.go:resolve(diamond) - 0s
[TRACE] 11:52:02.181 path.go:normalize() - 0s
[DEBUG] 11:52:02.181 path.go:setMappedLocations:560 →
[DEBUG] 11:52:02.181 path.go:setMappedLocations:565 → mapped_locations: map[{{ .Env.GitBaseDirectory }}Azure/*: {{ .Env.GitBaseDirectory }}Bitbucket/*: {{ .Env.GitBaseDirectory }}GitHub/*: ]
[DEBUG] 11:52:02.181 value.go:call:581 → E:\
[TRACE] 11:52:02.181 value.go:call(GitBaseDirectory) - 0s
[TRACE] 11:52:02.181 path.go:setMappedLocations({{ .Env.GitBaseDirectory }}Bitbucket/*) - 522.3µs
[TRACE] 11:52:02.181 clean.go:Clean() - 0s
[TRACE] 11:52:02.181 path.go:normalize() - 0s
[TRACE] 11:52:02.181 clean.go:Clean() - 0s
[TRACE] 11:52:02.181 path.go:normalize() - 0s
[DEBUG] 11:52:02.181 value.go:call:581 → E:\
[TRACE] 11:52:02.181 value.go:call(GitBaseDirectory) - 0s
[TRACE] 11:52:02.181 path.go:setMappedLocations({{ .Env.GitBaseDirectory }}GitHub/*) - 0s
[TRACE] 11:52:02.181 clean.go:Clean() - 0s
[TRACE] 11:52:02.181 path.go:normalize() - 0s
[TRACE] 11:52:02.181 clean.go:Clean() - 0s
[TRACE] 11:52:02.181 path.go:normalize() - 0s
[DEBUG] 11:52:02.181 value.go:call:581 → E:\
[TRACE] 11:52:02.181 value.go:call(GitBaseDirectory) - 0s
[TRACE] 11:52:02.181 path.go:setMappedLocations({{ .Env.GitBaseDirectory }}Azure/*) - 0s
[TRACE] 11:52:02.181 clean.go:Clean() - 0s
[TRACE] 11:52:02.181 path.go:normalize() - 0s
[TRACE] 11:52:02.181 clean.go:Clean() - 0s
[TRACE] 11:52:02.181 path.go:normalize() - 0s
[TRACE] 11:52:02.181 clean.go:Clean() - 0s
[TRACE] 11:52:02.181 path.go:normalize() - 0s
[TRACE] 11:52:02.181 clean.go:Clean() - 0s
[TRACE] 11:52:02.181 path.go:normalize() - 0s
[TRACE] 11:52:02.181 path.go:parsePath() - 0s
[TRACE] 11:52:02.181 path.go:parsePath() - 0s
[TRACE] 11:52:02.181 path.go:parsePath() - 0s
[DEBUG] 11:52:02.181 path.go:makeFolderFormatMap:833 → NO DATA
[DEBUG] 11:52:02.181 path.go:setStyle:213 → agnoster_short
[DEBUG] 11:52:02.181 path.go:getAgnosterShortPath:500 → max_depth: 2
[DEBUG] 11:52:02.181 path.go:getAgnosterShortPath:506 → hide_root_location: false
[DEBUG] 11:52:02.181 path.go:getAgnosterShortPath:507 →
[DEBUG] 11:52:02.181 path.go:colorizePath:734 → cycle: []
[DEBUG] 11:52:02.181 path.go:getFolderSeparator:267 → NO DATA
[DEBUG] 11:52:02.181 path.go:getFolderSeparator:269 →
[DEBUG] 11:52:02.181 path.go:colorizePath:737 → cycle_folder_separator: false
[DEBUG] 11:52:02.181 path.go:colorizePath:738 → %s
[DEBUG] 11:52:02.181 path.go:colorizePath:740 → %s
[DEBUG] 11:52:02.181 path.go:colorizePath:741 → %s
[DEBUG] 11:52:02.181 path.go:colorizePath:742 → %s
[TRACE] 11:52:02.181 path.go:Enabled() - 0s
[TRACE] 11:52:02.181 path.go:Enabled() - 0s
[TRACE] 11:52:02.181 path.go:Enabled() - 0s
[DEBUG] 11:52:02.182 terminal_windows.go:DirIsWritable:216 → current user is member of S-1-5-32-544
[DEBUG] 11:52:02.182 win32_windows.go:isWriteable:271 ↓
WRITE_DAC
WRITE_OWNER
SYNCHRONIZE
DELETE
READ_CONTROL
[DEBUG] 11:52:02.182 terminal_windows.go:DirIsWritable:216 → user has write access
[TRACE] 11:52:02.182 path.go:Enabled() - 558.2µs
[TRACE] 11:52:02.182 segment.go:string( {{ .Path }} ) - 0s
[TRACE] 11:52:02.182 segment.go:resolve(powerline) - 0s
[DEBUG] 11:52:02.184 terminal.go:HasCommand:323 → C:\Program Files\Git\cmd\git.exe
[TRACE] 11:52:02.184 terminal.go:HasCommand(git.exe) - 4.1605ms
[TRACE] 11:52:02.184 scm.go:hasCommand(git.exe) - 4.1605ms
[DEBUG] 11:52:02.184 git.go:shouldDisplay:344 → fetch_bare_info: false
[DEBUG] 11:52:02.184 terminal.go:HasParentFilePath:446 → E:\GitHub\totkeks\dotfiles
[TRACE] 11:52:02.184 terminal.go:HasParentFilePath(E:\GitHub\totkeks\dotfiles) - 0s
[TRACE] 11:52:02.184 git.go:shouldDisplay(.git) - 0s
[DEBUG] 11:52:02.184 home.go:Home:26 → C:\Users\totkeks
[TRACE] 11:52:02.184 git.go:setDir() - 0s
[TRACE] 11:52:02.184 scm.go:convertToWindowsPath() - 0s
[DEBUG] 11:52:02.184 git.go:Enabled:181 → fetch_user: false
[DEBUG] 11:52:02.184 git.go:Enabled:196 → cli
[DEBUG] 11:52:02.184 git.go:Enabled:201 → fetch_status: true
[DEBUG] 11:52:02.184 git.go:shouldIgnoreStatus:486 → ignore_status: []
[DEBUG] 11:52:02.184 home.go:Home:26 → C:\Users\totkeks
[TRACE] 11:52:02.184 terminal.go:DirMatchesOneOf() - 0s
[DEBUG] 11:52:02.184 git.go:setGitStatus:632 → status_formats: map[]
[DEBUG] 11:52:02.184 git.go:getSwitchMode:949 → untracked_modes: map[]
[DEBUG] 11:52:02.184 git.go:getSwitchMode:949 → ignore_submodules: map[]
[DEBUG] 11:52:02.207 git.go:getGitCommandOutput:683 ↓
# branch.oid b076fc246530cb406b84b50cfc0041f857617ff0
# branch.head main
# branch.upstream origin/main
# branch.ab +0 -0
1 .M N... 100644 100644 100644 830f461499e12d5c9018e510eb0ee9cd962fe250 830f461499e12d5c9018e510eb0ee9cd962fe250 .editorconfig
1 .M N... 100644 100644 100644 830f461499e12d5c9018e510eb0ee9cd962fe250 830f461499e12d5c9018e510eb0ee9cd962fe250 defaults/.editorconfig
1 .M N... 100644 100644 100644 708240b04db7337178ec51a01f14ef7028f293f5 708240b04db7337178ec51a01f14ef7028f293f5 dotfiles/.totkeks.omp.toml
1 .M N... 100644 100644 100644 3f4582e23e598478a55a4be2145fd1edf586c44b 3f4582e23e598478a55a4be2145fd1edf586c44b dotfiles/Documents/PowerShell/Profile/Aliases.ps1
1 .M N... 100644 100644 100644 af1789ba2e991e73592bb07e76888b040e8789f9 af1789ba2e991e73592bb07e76888b040e8789f9 setup/windows/enable-longpaths.reg
? defaults/PowerShell.md
? dotfiles/Documents/PowerShell/Scripts/Suspend-Displays.ps1
? setup/Microsoft Windows 11 logo (Sextants).txt
? setup/Microsoft Windows 11 logo (Sextants+Octants).txt
? setup/Windows Terminal (Octants).txt
? setup/windows/Install-Apps.ps1
? setup/windows/Rename-HomeDirectory.ps1
? setup/windows/Set-VirtualDesktops.ps1
? setup/windows/apps.csv
? setup/windows/enable-dark-theme.reg
? setup/windows/hide-recycle-bin.reg
? setup/windows/hide-taskbar-search.reg
? setup/windows/hide-taskbar-widgets.reg
? setup/windows/set-explorer-defaults.reg
? setup/windows/system-setup.ps1
? setup/windows/system-tray.txt
? setup/windows/system/
? setup/windows/taskbar.txt
? setup/windows/unattend-template.xml
? setup/windows/user-setup-pwsh.ps1
? setup/windows/user-setup.ps1
[TRACE] 11:52:02.207 git.go:getGitCommandOutput(git.exe -C E:/GitHub/totkeks/dotfiles --no-optional-locks -c core.quotepath=false -c color.status=false status -unormal --branch --porcelain=2) - 22.7836ms
[DEBUG] 11:52:02.207 git.go:setGitHEADContext:691 →
[DEBUG] 11:52:02.207 scm.go:formatBranch:106 → mapped_branches: map[]
[DEBUG] 11:52:02.207 scm.go:formatBranch:122 → full_branch_path: true
[DEBUG] 11:52:02.207 scm.go:formatBranch:128 → branch_max_length: 0
[DEBUG] 11:52:02.207 git.go:setGitHEADContext:724 → false
[TRACE] 11:52:02.207 git.go:setGitHEADContext(E:\GitHub\totkeks\dotfiles\.git/rebase-merge) - 0s
[DEBUG] 11:52:02.207 git.go:setGitHEADContext:743 → false
[TRACE] 11:52:02.207 git.go:setGitHEADContext(E:\GitHub\totkeks\dotfiles\.git/rebase-apply) - 0s
[DEBUG] 11:52:02.207 git.go:setGitHEADContext:760 →
[DEBUG] 11:52:02.207 git.go:hasGitFile:839 → false
[TRACE] 11:52:02.207 git.go:hasGitFile(MERGE_MSG) - 0s
[DEBUG] 11:52:02.207 git.go:hasGitFile:839 → false
[TRACE] 11:52:02.207 git.go:hasGitFile(CHERRY_PICK_HEAD) - 0s
[DEBUG] 11:52:02.207 git.go:hasGitFile:839 → false
[TRACE] 11:52:02.207 git.go:hasGitFile(REVERT_HEAD) - 0s
[DEBUG] 11:52:02.207 git.go:hasGitFile:839 → false
[TRACE] 11:52:02.207 git.go:hasGitFile(sequencer/todo) - 0s
[DEBUG] 11:52:02.207 git.go:505 → ≡
[DEBUG] 11:52:02.207 git.go:Enabled:214 → fetch_upstream_icon: true
[DEBUG] 11:52:02.207 git.go:getUpstreamIcon:569 → upstream_icons: map[]
[DEBUG] 11:52:02.207 git.go:getUpstreamIcon:590 →
[TRACE] 11:52:02.207 segment.go:string( {{ .UpstreamIcon }}{{ .HEAD }}{{if .BranchStatus }} {{ .BranchStatus }}{{ end }}{{ if .Working.Changed }} {{ .Working.String }}{{ end }}{{ if and (.Working.Changed) (.Staging.Changed) }} |{{ end }}{{ if .Staging.Changed }}<#EF5350> {{ .Staging.String }}</>{{ end }} ) - 510.7µs
[TRACE] 11:52:02.207 list.go:FirstMatch({{ if or (.Working.Changed) (.Staging.Changed) }}#FFEB95{{ end }}) - 0s
[TRACE] 11:52:02.207 segment.go:resolve(powerline) - 0s
[TRACE] 11:52:02.207 list.go:FirstMatch({{ if or (.Working.Changed) (.Staging.Changed) }}#FFEB95{{ end }}) - 0s
[TRACE] 11:52:02.207 segment.go:string( {{ .FormattedMs }} ) - 0s
[TRACE] 11:52:02.207 segment.go:resolve(diamond) - 0s
[TRACE] 11:52:02.207 list.go:FirstMatch({{ if or (.Working.Changed) (.Staging.Changed) }}#FFEB95{{ end }}) - 0s
[TRACE] 11:52:02.207 engine.go:applyPowerShellBleedPatch() - 0s
[TRACE] 11:52:02.207 segment.go:Execute() - 0s
[TRACE] 11:52:02.207 segment.go:Execute() - 0s
[TRACE] 11:52:02.207 segment.go:Execute() - 0s
[TRACE] 11:52:02.207 segment.go:Execute() - 0s
[DEBUG] 11:52:02.207 home.go:Home:26 → C:\Users\totkeks
[TRACE] 11:52:02.207 terminal.go:DirMatchesOneOf() - 0s
[DEBUG] 11:52:02.207 home.go:Home:26 → C:\Users\totkeks
[TRACE] 11:52:02.207 terminal.go:DirMatchesOneOf() - 0s
[DEBUG] 11:52:02.207 segment.go:Execute:110 → segment: Rust
[DEBUG] 11:52:02.207 segment.go:Execute:110 → segment: Azfunc
[DEBUG] 11:52:02.207 segment.go:Execute:112 → no toggles found
[TRACE] 11:52:02.207 segment.go:Execute() - 0s
[DEBUG] 11:52:02.207 home.go:Home:26 → C:\Users\totkeks
[TRACE] 11:52:02.207 terminal.go:DirMatchesOneOf() - 0s
[DEBUG] 11:52:02.207 segment.go:Execute:110 → segment: Angular
[DEBUG] 11:52:02.207 language.go:Enabled:118 → extensions: [*.rs Cargo.toml Cargo.lock]
[DEBUG] 11:52:02.207 language.go:Enabled:118 → extensions: [host.json local.settings.json function.json]
[DEBUG] 11:52:02.207 language.go:Enabled:119 → folders: []
und
[DEBUG] 11:52:02.207 language.go:Enabled:126 → home_enabled: false
[DEBUG] 11:52:02.207 language.go:Enabled:126 → home_enabled: false
[DEBUG] 11:52:02.207 home.go:Home:26 → C:\Users\totkeks
[DEBUG] 11:52:02.207 home.go:Home:26 → C:\Users\totkeks
[DEBUG] 11:52:02.207 language.go:Enabled:138 → files
[DEBUG] 11:52:02.207 language.go:Enabled:118 → extensions: [angular.json]
[DEBUG] 11:52:02.207 language.go:Enabled:119 → folders: []
[DEBUG] 11:52:02.207 language.go:Enabled:126 → home_enabled: false
[DEBUG] 11:52:02.207 home.go:Home:26 → C:\Users\totkeks
[DEBUG] 11:52:02.207 language.go:Enabled:138 → files
[DEBUG] 11:52:02.207 home.go:Home:26 → C:\Users\totkeks
[TRACE] 11:52:02.207 terminal.go:DirMatchesOneOf() - 0s
[DEBUG] 11:52:02.207 home.go:Home:26 → C:\Users\totkeks
[TRACE] 11:52:02.208 terminal.go:DirMatchesOneOf() - 0s
[DEBUG] 11:52:02.208 segment.go:Execute:110 → segment: Time
[DEBUG] 11:52:02.208 segment.go:Execute:112 → no toggles found
[DEBUG] 11:52:02.207 home.go:Home:26 → C:\Users\totkeks
[TRACE] 11:52:02.208 terminal.go:DirMatchesOneOf() - 0s
[DEBUG] 11:52:02.208 segment.go:Execute:110 → segment: Node
[DEBUG] 11:52:02.208 time.go:Enabled:27 → 15:04:05
[DEBUG] 11:52:02.208 segment.go:Execute:112 → no toggles found
[TRACE] 11:52:02.208 segment.go:Execute() - 0s
[TRACE] 11:52:02.208 segment.go:Execute() - 0s
[DEBUG] 11:52:02.208 home.go:Home:26 → C:\Users\totkeks
[TRACE] 11:52:02.208 terminal.go:DirMatchesOneOf() - 0s
[DEBUG] 11:52:02.208 segment.go:Execute:110 → segment: Ruby
[DEBUG] 11:52:02.208 language.go:Enabled:118 → extensions: [*.js *.ts package.json .nvmrc pnpm-workspace.yaml .pnpmfile.cjs .vue]
[DEBUG] 11:52:02.208 language.go:Enabled:119 → folders: []
[DEBUG] 11:52:02.208 language.go:Enabled:126 → home_enabled: false
[TRACE] 11:52:02.208 terminal.go:DirMatchesOneOf() - 0s
[TRACE] 11:52:02.208 segment.go:Execute() - 0s
[DEBUG] 11:52:02.208 terminal.go:HasFiles:114 → false
[TRACE] 11:52:02.208 terminal.go:HasFiles(host.json) - 517.5µs
[DEBUG] 11:52:02.208 terminal.go:HasFiles:114 → false
[TRACE] 11:52:02.208 terminal.go:HasFiles(local.settings.json) - 0s
[DEBUG] 11:52:02.208 terminal.go:HasFiles:114 → false
[TRACE] 11:52:02.208 terminal.go:HasFiles(function.json) - 0s
[DEBUG] 11:52:02.208 home.go:Home:26 → C:\Users\totkeks
[TRACE] 11:52:02.208 segment.go:Execute() - 0s
[TRACE] 11:52:02.208 terminal.go:DirMatchesOneOf() - 0s
[DEBUG] 11:52:02.208 home.go:Home:26 → C:\Users\totkeks
[DEBUG] 11:52:02.208 segment.go:Execute:110 → segment: Dotnet
[DEBUG] 11:52:02.208 segment.go:Execute:110 → segment: Go
[DEBUG] 11:52:02.208 segment.go:Execute:112 → no toggles found
[DEBUG] 11:52:02.208 segment.go:Execute:112 → no toggl[DEBUG] 11:52:02.208 home.go:Home:26 → C:\Users\totkeks
[DEBUG] 11:52:02.208 segment.go:Execute:110 → segment: Python
[DEBUG] 11:52:02.208 segment.go:Execute:112 → no toggles found
[DEBUG] 11:52:02.208 segment.go:Execute:112 → no toggles found
[DEBUG] 11:52:02.208 language.go:Enabled:138 → files
[TRACE] 11:52:02.208 terminal.go:DirMatchesOneOf() - 0s
[DEBUG] 11:52:02.208 language.go:Enabled:118 → extensions: [*.rb Rakefile Gemfile]
[DEBUG] 11:52:02.208 language.go:Enabled:118 → extensions: [*.go go.mod]
[DEBUG] 11:52:02.208 language.go:Enabled:118 → extensions: [*.cs *.csx *.vb *.sln *.slnf *.csproj *.vbproj *.fs *.fsx *.fsproj global.json]
[DEBUG] 11:52:02.208 language.go:Enabled:119 → folders: []
[DEBUG] 11:52:02.208 language.go:Enabled:119 → folders: []
[DEBUG] 11:52:02.208 language.go:Enabled:126 → home_enabled: false
[DEBUG] 11:52:02.208 terminal.go:HasFiles:114 → false
[DEBUG] 11:52:02.208 python.go:Enabled:57 → environment
[TRACE] 11:52:02.208 terminal.go:HasFiles(*.rs) - 517.5µs
[DEBUG] 11:52:02.208 language.go:Enabled:126 → home_enabled: false
[DEBUG] 11:52:02.208 language.go:Enabled:119 → folders: []
[DEBUG] 11:52:02.208 terminal.go:HasFiles:114 → false
[DEBUG] 11:52:02.208 language.go:Enabled:126 → home_enabled: false
[TRACE] 11:52:02.208 terminal.go:HasFiles(Cargo.toml) - 0s
[DEBUG] 11:52:02.208 terminal.go:HasFiles:114 → false
[DEBUG] 11:52:02.208 language.go:Enabled:118 → extensions: [*.py *.ipynb pyproject.toml venv.bak]
[TRACE] 11:52:02.208 terminal.go:HasFiles(Cargo.lock) - 0s
[DEBUG] 11:52:02.208 language.go:Enabled:119 → folders: [.venv venv virtualenv venv-win pyenv-win]
[DEBUG] 11:52:02.208 language.go:Enabled:126 → home_enabled: false
[DEBUG] 11:52:02.208 segment.go:Execute:112 → no toggles found
[DEBUG] 11:52:02.208 terminal.go:HasFiles:114 → false
[TRACE] 11:52:02.208 terminal.go:HasFiles(angular.json) - 517.5µs
[DEBUG] 11:52:02.208 language.go:Enabled:118 → extensions: [workspace.json nx.json]
[DEBUG] 11:52:02.208 language.go:Enabled:119 → folders: []
[DEBUG] 11:52:02.208 language.go:Enabled:126 → home_enabled: false
[DEBUG] 11:52:02.208 node.go:loadContext:48 → fetch_package_manager: true
[TRACE] 11:52:02.208 segment.go:Execute() - 0s
[DEBUG] 11:52:02.208 terminal.go:HasFiles:114 → false
[DEBUG] 11:52:02.208 home.go:Home:26 → C:\Users\totkeks
[DEBUG] 11:52:02.208 segment.go:Execute:110 → segment: Kubectl
[TRACE] 11:52:02.208 terminal.go:HasFiles(pnpm-lock.yaml) - 0s
[DEBUG] 11:52:02.208 home.go:Home:26 → C:\Users\totkeks
[DEBUG] 11:52:02.208 terminal.go:HasFiles:114 → false
[TRACE] 11:52:02.208 terminal.go:HasFiles(yarn.lock) - 0s
[DEBUG] 11:52:02.208 python.go:loadContext:65 → fetch_virtual_env: true
[DEBUG] 11:52:02.208 segment.go:Execute:112 → no toggles found
[DEBUG] 11:52:02.208 language.go:Enabled:138 → files
[DEBUG] 11:52:02.208 terminal.go:HasFiles:114 → false
[DEBUG] 11:52:02.208 kubectl.go:Enabled:45 → parse_kubeconfig: true
[TRACE] 11:52:02.208 terminal.go:HasFiles(package-lock.json) - 0s
[DEBUG] 11:52:02.208 home.go:Home:26 → C:\Users\totkeks
[DEBUG] 11:52:02.208 terminal.go:HasFiles:114 → false
[DEBUG] 11:52:02.208 kubectl.go:doParseKubeConfig:57 → NO DATA
[TRACE] 11:52:02.208 terminal.go:HasFiles(package.json) - 0s
[TRACE] 11:52:02.208 kubectl.go:doParseKubeConfig(KUBECONFIG) - 0s
[TRACE] 11:52:02.208 terminal.go:HasFiles(*.rb) - 0s
[DEBUG] 11:52:02.208 language.go:Enabled:138 → files
[TRACE] 11:52:02.208 terminal.go:HasFiles(Rakefile) - 0s
[DEBUG] 11:52:02.208 terminal.go:HasFiles:114 → false
[TRACE] 11:52:02.208 terminal.go:HasFiles(Gemfile) - 519.8µs
[DEBUG] 11:52:02.208 terminal.go:HasFiles:114 → false
[DEBUG] 11:52:02.208 home.go:Home:26 → C:\Users\totkeks
[TRACE] 11:52:02.208 terminal.go:HasFiles(*.go) - 0s
[DEBUG] 11:52:02.208 language.go:Enabled:138 → files
[DEBUG] 11:52:02.208 terminal.go:HasFiles:114 → false
[TRACE] 11:52:02.208 terminal.go:HasFiles(go.mod) - 0s
[DEBUG] 11:52:02.208 terminal.go:HasFiles:114 → false
[TRACE] 11:52:02.208 terminal.go:HasFiles(workspace.json) - 0s
[DEBUG] 11:52:02.208 home.go:Home:26 → C:\Users\totkeks
[DEBUG] 11:52:02.208 home.go:Home:26 → C:\Users\totkeks
[DEBUG] 11:52:02.208 home.go:Home:26 → C:\Users\totkeks
[DEBUG] 11:52:02.208 terminal.go:HasFiles:114 → false
[TRACE] 11:52:02.208 terminal.go:HasFiles(nx.json) - 0s
[TRACE] 11:52:02.208 terminal.go:DirMatchesOneOf() - 0s
[DEBUG] 11:52:02.208 segment.go:Execute:110 → segment: Os
[DEBUG] 11:52:02.208 language.go:Enabled:138 → files
[TRACE] 11:52:02.208 os.go:Enabled() - 0s
[DEBUG] 11:52:02.208 os.go:Enabled:33 →
[TRACE] 11:52:02.208 segment.go:resolve(diamond) - 0s
[DEBUG] 11:52:02.208 terminal.go:HasFiles:114 → false
[TRACE] 11:52:02.208 terminal.go:HasFiles(*.cs) - 0s
[DEBUG] 11:52:02.208 terminal.go:HasFiles:114 → false
[TRACE] 11:52:02.208 terminal.go:HasFiles(*.csx) - 0s
[DEBUG] 11:52:02.208 terminal.go:HasFiles:114 → false
[TRACE] 11:52:02.208 terminal.go:HasFiles(*.vb) - 0s
[DEBUG] 11:52:02.208 terminal.go:HasFiles:114 → false
[TRACE] 11:52:02.208 terminal.go:HasFiles(*.sln) - 0s
[DEBUG] 11:52:02.208 terminal.go:HasFiles:114 → false
[TRACE] 11:52:02.208 terminal.go:HasFiles(*.slnf) - 0s
[DEBUG] 11:52:02.208 terminal.go:HasFiles:114 → false
[TRACE] 11:52:02.208 terminal.go:HasFiles(*.csproj) - 0s
[DEBUG] 11:52:02.208 terminal.go:HasFiles:114 → false
[TRACE] 11:52:02.208 terminal.go:HasFiles(*.vbproj) - 0s
[DEBUG] 11:52:02.208 terminal.go:HasFiles:114 → false
[TRACE] 11:52:02.208 terminal.go:HasFiles(*.fs) - 0s
[DEBUG] 11:52:02.208 terminal.go:HasFiles:114 → false
[TRACE] 11:52:02.208 terminal.go:HasFiles(*.fsx) - 0s
[DEBUG] 11:52:02.208 terminal.go:HasFiles:114 → false
[TRACE] 11:52:02.208 terminal.go:HasFiles(*.fsproj) - 0s
[DEBUG] 11:52:02.208 terminal.go:HasFiles:114 → false
[TRACE] 11:52:02.208 terminal.go:HasFiles(global.json) - 0s
[ERROR] 11:52:02.208 kubectl.go:doParseKubeConfig:70 → open C:\Users\totkeks\.kube\config: The system cannot find the path specified.
[TRACE] 11:52:02.208 kubectl.go:doParseKubeConfig(C:\Users\totkeks\.kube\config) - 0s
[DEBUG] 11:52:02.208 kubectl.go:doParseKubeConfig:103 → display_error: false
[DEBUG] 11:52:02.211 python.go:pyvenvCfgPrompt:179 → C:\Users\totkeks\AppData\Local\Programs\Python\Python312\python.exe
[TRACE] 11:52:02.211 python.go:pyvenvCfgPrompt(python) - 3.6132ms
[DEBUG] 11:52:02.211 python.go:pyvenvCfgPrompt:189 → false
[TRACE] 11:52:02.211 python.go:pyvenvCfgPrompt(pyvenv.cfg) - 0s
[DEBUG] 11:52:02.211 python.go:pyvenvCfgPrompt:193 → false
[TRACE] 11:52:02.211 python.go:pyvenvCfgPrompt(pyvenv.cfg) - 0s
[DEBUG] 11:52:02.211 python.go:loadContext:79 → folder_name_fallback: true
[DEBUG] 11:52:02.211 python.go:loadContext:80 → default_venv_names: [.venv venv]
[DEBUG] 11:52:02.211 python.go:loadContext:87 → NO DATA
[TRACE] 11:52:02.211 python.go:loadContext(VIRTUAL_ENV) - 0s
[DEBUG] 11:52:02.211 python.go:loadContext:87 → NO DATA
[TRACE] 11:52:02.211 python.go:loadContext(CONDA_ENV_PATH) - 0s
[DEBUG] 11:52:02.211 python.go:loadContext:87 → NO DATA
[TRACE] 11:52:02.211 python.go:loadContext(CONDA_DEFAULT_ENV) - 0s
[TRACE] 11:52:02.211 segment.go:resolve(diamond) - 0s
[TRACE] 11:52:02.211 segment.go:resolve(diamond) - 0s
[TRACE] 11:52:02.211 segment.go:resolve(diamond) - 0s
[TRACE] 11:52:02.211 segment.go:resolve(diamond) - 0s
[TRACE] 11:52:02.211 segment.go:resolve(diamond) - 0s
[TRACE] 11:52:02.211 segment.go:resolve(diamond) - 0s
[TRACE] 11:52:02.211 segment.go:resolve(diamond) - 0s
[TRACE] 11:52:02.211 segment.go:resolve(diamond) - 0s
[TRACE] 11:52:02.211 segment.go:resolve(diamond) - 0s
[TRACE] 11:52:02.211 segment.go:string({{ if .WSL }}WSL at {{ end }}{{.Icon}} <#40C4FF></>) - 0s
[TRACE] 11:52:02.211 segment.go:resolve(diamond) - 0s
[TRACE] 11:52:02.211 segment.go:string( {{ .CurrentDate | date .Format }}) - 0s
[TRACE] 11:52:02.211 segment.go:resolve(diamond) - 0s
[DEBUG] 11:52:02.211 terminal_windows.go:TerminalWidth:99 → terminal width: 120
[TRACE] 11:52:02.211 engine.go:canWriteRightBlock() - 0s
[TRACE] 11:52:02.211 engine.go:applyPowerShellBleedPatch() - 0s
[TRACE] 11:52:02.211 segment.go:Execute() - 0s
[DEBUG] 11:52:02.211 home.go:Home:26 → C:\Users\totkeks
[TRACE] 11:52:02.211 terminal.go:DirMatchesOneOf() - 0s
[DEBUG] 11:52:02.211 segment.go:Execute:110 → segment: Status
[DEBUG] 11:52:02.211 segment.go:Execute:112 → no toggles found
[TRACE] 11:52:02.211 status.go:Enabled() - 0s
[DEBUG] 11:52:02.211 status.go:formatStatus:45 → {{ .Code }}
[TRACE] 11:52:02.212 status.go:formatStatus({{ .Code }}) - 531.2µs
[DEBUG] 11:52:02.212 status.go:Enabled:37 → always_enabled: true
[TRACE] 11:52:02.212 segment.go:string(╰ {{ .Segments.Status.Error }}) - 0s
[TRACE] 11:52:02.212 list.go:FirstMatch({{ if gt .Code 0 }}#EF5350{{ end }}) - 0s
[TRACE] 11:52:02.212 segment.go:resolve(plain) - 0s
[TRACE] 11:52:02.212 list.go:FirstMatch({{ if gt .Code 0 }}#EF5350{{ end }}) - 0s
[TRACE] 11:52:02.212 engine.go:applyPowerShellBleedPatch() - 0s
[TRACE] 11:52:02.212 primary.go:writePrimaryPrompt() - 0s
[TRACE] 11:52:02.212 primary.go:Primary() - 0s
[TRACE] 11:52:02.212 debug.go:PrintDebug() - 0s
[TRACE] 11:52:02.212 debug.go:PrintDebug() - 0sReactions are currently unavailable
Metadata
Metadata
Assignees
Labels
🐛 bugSomething isn't workingSomething isn't working