Execution Time always shows 0ms #5694
Answered
by
JanDeDobbeleer
abdalmoniem
asked this question in
Troubleshoot
-
Code of Conduct
What happened?execution time segment always shows 0ms Themecustom theme: {
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"auto_upgrade": true,
"blocks": [
{
"alignment": "left",
"segments": [
{
"background": "#0077c2",
"foreground": "#ffffff",
"style": "diamond",
"leading_diamond": "╭─",
"template": " {{ .Name }} ",
"type": "shell"
},
{
"foreground": "#0000ff",
"background": "#ffffff",
"style": "powerline",
"powerline_symbol": "",
"template": " {{ if .Root }}{{ else }}{{ end }} {{ .UserName }}@{{ .HostName }} ",
"type": "session"
},
{
"foreground": "#fffb38",
"background": "#ef5350",
"style": "diamond",
"template": " ",
"type": "root"
},
{
"type": "python",
"style": "powerline",
"powerline_symbol": "",
"foreground": "#100e23",
"background": "#906cff",
"template": " {{ if .Error }}{{ .Error }}{{ else }}{{ if .Venv }}{{ .Venv }} {{ end }}{{ .Full }}{{ end }} "
},
{
"foreground": "#ffffff",
"background": "#0000ff",
"style": "powerline",
"powerline_symbol": "",
"properties": {
"style": "mixed",
"mixed_threshold": 4,
"max_depth": 2,
"folder_icon": "",
"home_icon": " ~"
},
"template": " {{ .Path }} ",
"type": "path"
},
{
"foreground": "#424242",
"foreground_templates": [
"{{ if or (.Working.Changed) (.Staging.Changed) }}#053f22{{ end }}",
"{{ if or (gt .Ahead 0) (gt .Behind 0) }}#0a703e{{ end }}"
],
"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 }}"
],
"style": "diamond",
"trailing_diamond": "",
"properties": {
"branch_max_length": 30,
"fetch_status": true,
"fetch_upstream_icon": true,
"branch_icon": " ",
"style": "full"
},
"template": " {{ .UpstreamIcon }}{{ .HEAD }}{{if .BranchStatus }} {{ .BranchStatus }}{{ end }}{{ if .Working.Changed }}<#bd6200> {{ .Working.String }}</>{{ end }}{{ if and (.Working.Changed) (.Staging.Changed) }} |{{ end }}{{ if .Staging.Changed }}<#053f22> {{ .Staging.String }}</>{{ end }}{{ if gt .StashCount 0 }} {{ .StashCount }}{{ end }} ",
// "template": " [{{ .UpstreamIcon }}{{ .HEAD }}{{ .BranchStatus }}{{ if .Working.Changed }}<#bd6200> {{ .Working.String }}</>{{ end }}{{ if and (.Working.Changed) (.Staging.Changed) }} |{{ end }}{{ if .Staging.Changed }}<#053f22> {{ .Staging.String }}</>{{ end }}] ",
// "template": "{{ if .Env.POSH_GIT_STRING }} {{ .Env.POSH_GIT_STRING }} {{ end }}",
"type": "git"
},
{
"foreground": "#ffffff",
"background": "#333fff",
"style": "diamond",
"trailing_diamond": "",
"properties": {
"style": "austin",
"threshold": 0,
"always_enabled": true
},
"template": " {{ .FormattedMs }} ",
"type": "executiontime"
}
],
"type": "prompt"
},
{
"alignment": "right",
"segments": [
{
"foreground": "#193549",
"background": "#ffeb3b",
"background_templates": [
"{{if eq \"Charging\" .State.String}}#40c4ff{{end}}",
"{{if eq \"Discharging\" .State.String}}#ff5722{{end}}",
"{{if eq \"Full\" .State.String}}#4caf50{{end}}"
],
"style": "diamond",
"leading_diamond": "",
"invert_powerline": true,
"properties": {
"charging_icon": " ",
"discharging_icon": " ",
"charged_icon": " "
},
"template": "{{ if not .Error }}{{ .Icon }}{{ .Percentage }}{{ end }}{{ .Error }} <#ccffbb></>",
"type": "battery"
},
{
"foreground": "#222222",
"background": "#ccffbb",
// "leading_diamond": "",
"properties": {
"linux": "",
"macos": "",
"windows": ""
},
"style": "diamond",
"template": " {{ if .WSL }}WSL at {{ end }}{{.Icon}} <#33ffaa></>",
"type": "os"
},
{
"foreground": "#000000",
"background": "#33ffaa",
"style": "diamond",
// "leading_diamond": "",
"trailing_diamond": "",
"invert_powerline": true,
"properties": {
"time_format": "3:04:05 PM"
},
"template": " {{ .CurrentDate | date .Format }}",
"type": "time"
}
],
"type": "prompt"
},
{
"alignment": "left",
"newline": true,
"segments": [
{
"foreground": "#21c7c7",
"style": "plain",
"template": "╰─",
"type": "text"
},
{
"foreground": "#e0f8ff",
"foreground_templates": [
"{{ if gt .Code 0 }}#ef5350{{ end }}"
],
"style": "plain",
"properties": {
"always_enabled": true
// "status_template": "{{ if gt .Code 0 }}❌ {{else}}❯ {{end}}"
},
"template": "{{ if gt .Code 0 }}❯ {{else}}❯❯ {{end}}",
"type": "status"
}
],
"type": "prompt"
}
],
// "tooltips": [
// {
// "type": "git",
// "tips": [
// "git",
// "g"
// ],
// "style": "diamond",
// "foreground": "#193549",
// "background": "#fffb38",
// "leading_diamond": "",
// "trailing_diamond": "",
// "template": "{{ .HEAD }}{{ if .Staging.Changed }} {{ .Staging.String }}{{ end }}{{ if and (.Working.Changed) (.Staging.Changed) }} |{{ end }}{{ if .Working.Changed }} {{ .Working.String }}{{ end }}",
// "properties": {
// "fetch_status": true,
// "fetch_upstream_icon": true
// }
// }
// ],
"osc99": true,
"version": 2
} What OS are you seeing the problem on?Windows Which shell are you using?powershell Log outputVersion: 23.15.1
Shell: pwsh (7.4.5)
Prompt:
╭─ pwsh a.elhifnawy@SZZ1-LDL-P30499 C:\\System32 0ms 100 10:02:41 AM
╰─❯❯
Segments:
ConsoleTitle(false) - 0 ms
Shell(true) - 1 ms
Session(true) - 1 ms
Path(true) - 7 ms
Executiontime(true) - 1 ms
Battery(true) - 10 ms
Os(true) - 0 ms
Time(true) - 0 ms
Text(true) - 0 ms
Status(true) - 0 ms
Run duration: 29.3765ms
Cache path: C:\Users\a.elhifnawy\AppData\Local\oh-my-posh
Config path: C:\Users\a.elhifnawy\AppData\Local\Programs\oh-my-posh\themes\cairo.omp.json
Logs:
[DEBUG] 10:02:41.482 debug.go:49 → debug mode enabled
[DEBUG] 10:02:41.483 debug.go:49 → plain mode enabled
[DEBUG] 10:02:41.483 terminal.go:Getenv:164 → C:\Users\a.elhifnawy\AppData\Local
[TRACE] 10:02:41.483 terminal.go:Getenv(LOCALAPPDATA) - 0s
[TRACE] 10:02:41.483 terminal.go:CachePath() - 0s
[DEBUG] 10:02:41.483 terminal.go:70 → loading cache file: C:\Users\a.elhifnawy\AppData\Local\oh-my-posh\omp.cache
[DEBUG] 10:02:41.484 terminal.go:70 → loading cache key: upgrade_check
[TRACE] 10:02:41.484 terminal.go(C:\Users\a.elhifnawy\AppData\Local\oh-my-posh\omp.cache) - 542.8µs
[DEBUG] 10:02:41.484 terminal.go:Getenv:164 → C:\Users\a.elhifnawy\AppData\Local
[TRACE] 10:02:41.484 terminal.go:Getenv(LOCALAPPDATA) - 0s
[TRACE] 10:02:41.484 terminal.go:CachePath() - 0s
[DEBUG] 10:02:41.484 terminal.go:70 → loading cache file: C:\Users\a.elhifnawy\AppData\Local\oh-my-posh\omp.cache.f02be606-f173-474b-8bfe-dbf255a94690
[DEBUG] 10:02:41.484 terminal.go:70 → loading cache key: prompt_count_cache
[TRACE] 10:02:41.484 terminal.go(C:\Users\a.elhifnawy\AppData\Local\oh-my-posh\omp.cache.f02be606-f173-474b-8bfe-dbf255a94690) - 0s
[TRACE] 10:02:41.484 terminal.go:setPromptCount() - 0s
[DEBUG] 10:02:41.484 terminal.go:Getenv:164 → C:\Users\a.elhifnawy\AppData\Local\Programs\oh-my-posh\themes\cairo.omp.json
[TRACE] 10:02:41.484 terminal.go:Getenv(POSH_THEME) - 0s
[DEBUG] 10:02:41.484 terminal.go:ResolveConfigPath:96 → config set using POSH_THEME: C:\Users\a.elhifnawy\AppData\Local\Programs\oh-my-posh\themes\cairo.omp.json
[TRACE] 10:02:41.484 terminal.go:ResolveConfigPath() - 0s
[TRACE] 10:02:41.484 terminal.go:Init() - 2.0989ms
[TRACE] 10:02:41.484 terminal.go:Flags() - 0s
[TRACE] 10:02:41.485 load.go:loadConfig() - 1.059ms
[TRACE] 10:02:41.485 terminal.go:Flags() - 0s
[DEBUG] 10:02:41.485 debug.go:57 → terminal program: Windows Terminal
[DEBUG] 10:02:41.485 debug.go:57 → terminal shell: shell
[DEBUG] 10:02:41.485 terminal.go:Getenv:164 → NO DATA
[TRACE] 10:02:41.485 terminal.go:Getenv(OMP_CACHE_DISABLED) - 0s
[TRACE] 10:02:41.485 terminal_windows.go:WindowsRegistryKeyValue(HKEY_CURRENT_USER\Software\Microsoft\Windows\DWM\ColorizationColor) - 0s
[TRACE] 10:02:41.485 terminal.go:GOOS() - 0s
[TRACE] 10:02:41.485 terminal.go:GOOS() - 0s
[TRACE] 10:02:41.485 terminal.go:GOOS() - 0s
[TRACE] 10:02:41.485 terminal.go:GOOS() - 0s
[TRACE] 10:02:41.485 terminal.go:GOOS() - 0s
[TRACE] 10:02:41.485 terminal.go:GOOS() - 0s
[TRACE] 10:02:41.485 terminal.go:GOOS() - 0s
[TRACE] 10:02:41.485 terminal.go:GOOS() - 0s
[TRACE] 10:02:41.485 terminal.go:GOOS() - 0s
[TRACE] 10:02:41.485 terminal.go:GOOS() - 0s
[TRACE] 10:02:41.485 terminal.go:GOOS() - 0s
[TRACE] 10:02:41.485 terminal.go:GOOS() - 0s
[TRACE] 10:02:41.485 terminal.go:GOOS() - 0s
[TRACE] 10:02:41.485 terminal.go:GOOS() - 0s
[TRACE] 10:02:41.485 terminal.go:GOOS() - 0s
[TRACE] 10:02:41.485 terminal.go:GOOS() - 0s
[TRACE] 10:02:41.485 terminal.go:GOOS() - 0s
[TRACE] 10:02:41.485 terminal.go:GOOS() - 0s
[TRACE] 10:02:41.485 terminal.go:GOOS() - 0s
[DEBUG] 10:02:41.485 terminal_windows.go:WindowsRegistryKeyValue:215 → ColorizationColor(DWORD): 0xC41B275A
[TRACE] 10:02:41.485 terminal.go:Shell() - 0s
[DEBUG] 10:02:41.485 terminal.go:Getenv:164 → 7.4.5
[TRACE] 10:02:41.485 terminal.go:Getenv(POSH_SHELL_VERSION) - 0s
[DEBUG] 10:02:41.485 debug.go:PrintDebug:23 → segment: Title
[DEBUG] 10:02:41.485 text.go:Render:80 → rendering template:
[TRACE] 10:02:41.485 terminal.go:Flags() - 0s
[TRACE] 10:02:41.485 terminal.go:Shell() - 0s
[DEBUG] 10:02:41.485 terminal.go:Getenv:164 → 1
[TRACE] 10:02:41.485 terminal.go:Getenv(POSH_CURSOR_LINE) - 0s
[DEBUG] 10:02:41.485 terminal.go:Getenv:164 → 1
[TRACE] 10:02:41.485 terminal.go:Getenv(POSH_CURSOR_COLUMN) - 0s
[TRACE] 10:02:41.485 terminal.go:Flags() - 0s
[TRACE] 10:02:41.485 terminal.go:Flags() - 0s
[TRACE] 10:02:41.485 terminal.go:Flags() - 0s
[TRACE] 10:02:41.486 terminal.go:Flags() - 0s
[TRACE] 10:02:41.486 terminal.go:Flags() - 0s
[TRACE] 10:02:41.486 terminal.go:Flags() - 0s
[TRACE] 10:02:41.486 terminal.go:GOOS() - 0s
[TRACE] 10:02:41.486 terminal.go:PathSeparator() - 0s
[TRACE] 10:02:41.486 terminal.go:GOOS() - 0s
[TRACE] 10:02:41.486 terminal.go:GOOS() - 0s
[TRACE] 10:02:41.486 terminal.go:Flags() - 0s
[TRACE] 10:02:41.486 terminal.go:Flags() - 0s
[DEBUG] 10:02:41.486 python.go:Init:61 → environment
[DEBUG] 10:02:41.486 terminal.go:Pwd:189 → C:\Windows\System32
[TRACE] 10:02:41.486 terminal.go:Pwd() - 0s
[DEBUG] 10:02:41.486 terminal_windows.go:58 → C:\Users\a.elhifnawy
[TRACE] 10:02:41.486 terminal.go:GOOS() - 0s
[DEBUG] 10:02:41.486 segment.go:SetEnabled:115 → segment: Shell
[DEBUG] 10:02:41.486 shell.go:Enabled:28 → mapped_shell_names: map[]
[TRACE] 10:02:41.486 terminal.go:Shell() - 0s
[TRACE] 10:02:41.486 terminal.go:Flags() - 0s
[TRACE] 10:02:41.486 terminal_windows.go:Root() - 0s
[TRACE] 10:02:41.486 terminal.go:Shell() - 0s
[TRACE] 10:02:41.486 terminal.go:StatusCodes() - 0s
[TRACE] 10:02:41.486 terminal_windows.go:IsWsl() - 0s
[TRACE] 10:02:41.486 terminal.go:Flags() - 0s
[TRACE] 10:02:41.486 terminal.go:Pwd() - 0s
[TRACE] 10:02:41.486 terminal.go:Pwd() - 0s
[TRACE] 10:02:41.486 terminal.go:Pwd() - 0s
[DEBUG] 10:02:41.486 terminal_windows.go:58 → C:\Users\a.elhifnawy
[TRACE] 10:02:41.486 terminal.go:Pwd() - 0s
[DEBUG] 10:02:41.487 terminal_windows.go:58 → C:\Users\a.elhifnawy
[TRACE] 10:02:41.487 terminal.go:GOOS() - 0s
[DEBUG] 10:02:41.487 segment.go:SetEnabled:115 → segment: Python
[DEBUG] 10:02:41.487 path.go:149 → display_cygpath: false
[TRACE] 10:02:41.487 terminal.go:GOOS() - 0s
[TRACE] 10:02:41.487 terminal.go:GOOS() - 0s
[TRACE] 10:02:41.487 terminal.go:PathSeparator() - 0s
[TRACE] 10:02:41.487 terminal.go:Pwd() - 0s
[TRACE] 10:02:41.487 terminal.go:Shell() - 0s
[TRACE] 10:02:41.487 terminal.go:Flags() - 0s
[TRACE] 10:02:41.487 terminal.go:GOOS() - 0s
[DEBUG] 10:02:41.487 language.go:Enabled:109 → extensions: [*.py *.ipynb pyproject.toml venv.bak]
[DEBUG] 10:02:41.487 language.go:Enabled:110 → folders: [.venv venv virtualenv venv-win pyenv-win]
[DEBUG] 10:02:41.487 language.go:Enabled:117 → home_enabled: false
[TRACE] 10:02:41.487 terminal.go:Pwd() - 0s
[DEBUG] 10:02:41.487 terminal_windows.go:58 → C:\Users\a.elhifnawy
[DEBUG] 10:02:41.487 python.go:loadContext:70 → fetch_virtual_env: true
[DEBUG] 10:02:41.487 terminal.go:Getenv:164 → C:\Users\a.elhifnawy\AppData\Local
[TRACE] 10:02:41.487 terminal.go:Getenv(LOCALAPPDATA) - 0s
[DEBUG] 10:02:41.487 terminal.go:Host:347 → SZZ1-LDL-P30499
[TRACE] 10:02:41.487 terminal.go:Host() - 0s
[TRACE] 10:02:41.487 terminal.go:GOOS() - 0s
[DEBUG] 10:02:41.487 terminal.go:Getenv:164 → NO DATA
[TRACE] 10:02:41.487 terminal.go:Getenv(SHLVL) - 0s
[TRACE] 10:02:41.487 terminal.go:TemplateCache() - 1.0826ms
[TRACE] 10:02:41.487 terminal.go:TemplateCache() - 0s
[TRACE] 10:02:41.487 terminal.go:TemplateCache() - 0s
[DEBUG] 10:02:41.487 path.go:setMappedLocations:563 → mapped_locations_enabled: true
[DEBUG] 10:02:41.487 path.go:setMappedLocations:564 →
[DEBUG] 10:02:41.487 path.go:setMappedLocations:565 →
[DEBUG] 10:02:41.487 terminal_windows.go:58 → C:\Users\a.elhifnawy
[TRACE] 10:02:41.487 terminal.go:GOOS() - 0s
[TRACE] 10:02:41.487 terminal.go:PathSeparator() - 0s
[TRACE] 10:02:41.487 terminal.go:GOOS() - 0s
[TRACE] 10:02:41.487 terminal.go:GOOS() - 0s
[TRACE] 10:02:41.486 terminal_windows.go:Root() - 0s
[TRACE] 10:02:41.487 terminal.go:GOOS() - 0s
[DEBUG] 10:02:41.487 path.go:setMappedLocations:566 → ~
[DEBUG] 10:02:41.487 path.go:setMappedLocations:571 → mapped_locations: map[]
[TRACE] 10:02:41.487 terminal.go:GOOS() - 0s
[TRACE] 10:02:41.487 terminal.go:PathSeparator() - 0s
[TRACE] 10:02:41.487 terminal.go:GOOS() - 0s
[TRACE] 10:02:41.487 terminal.go:GOOS() - 0s
[TRACE] 10:02:41.487 terminal.go:GOOS() - 0s
[TRACE] 10:02:41.487 terminal.go:GOOS() - 0s
[TRACE] 10:02:41.487 terminal.go:PathSeparator() - 0s
[TRACE] 10:02:41.487 terminal.go:GOOS() - 0s
[TRACE] 10:02:41.487 terminal.go:GOOS() - 0s
[TRACE] 10:02:41.487 terminal.go:GOOS() - 0s
[TRACE] 10:02:41.487 terminal.go:GOOS() - 0s
[TRACE] 10:02:41.487 terminal.go:GOOS() - 0s
[TRACE] 10:02:41.487 terminal.go:GOOS() - 0s
[TRACE] 10:02:41.487 terminal.go:GOOS() - 0s
[DEBUG] 10:02:41.487 path.go:makeFolderFormatMap:839 → NO DATA
[TRACE] 10:02:41.487 terminal.go:GOOS() - 0s
[DEBUG] 10:02:41.487 path.go:setStyle:218 → mixed
[DEBUG] 10:02:41.487 path.go:getMixedPath:304 → mixed_threshold: 4.000000
[DEBUG] 10:02:41.487 path.go:getMixedPath:305 →
[DEBUG] 10:02:41.487 path.go:colorizePath:740 → cycle: []
[DEBUG] 10:02:41.487 path.go:getFolderSeparator:273 → NO DATA
[DEBUG] 10:02:41.487 path.go:getFolderSeparator:275 → \
[DEBUG] 10:02:41.487 path.go:colorizePath:743 → cycle_folder_separator: false
[DEBUG] 10:02:41.487 path.go:colorizePath:744 → %s
[DEBUG] 10:02:41.487 path.go:colorizePath:746 → %s
[DEBUG] 10:02:41.487 path.go:colorizePath:747 → %s
[DEBUG] 10:02:41.487 path.go:colorizePath:748 → %s
[TRACE] 10:02:41.487 terminal.go:GOOS() - 0s
[TRACE] 10:02:41.487 terminal.go:Pwd() - 0s
[TRACE] 10:02:41.487 terminal.go:TemplateCache() - 0s
[TRACE] 10:02:41.487 terminal.go:GOOS() - 0s
[TRACE] 10:02:41.487 terminal.go:StackCount() - 0s
[DEBUG] 10:02:41.493 terminal.go:CommandPath:389 → C:\Program Files\Git\cmd\git.exe
[TRACE] 10:02:41.493 terminal.go:CommandPath(git.exe) - 5.7466ms
[TRACE] 10:02:41.493 terminal.go:HasCommand(git.exe) - 5.7466ms
[DEBUG] 10:02:41.493 git.go:shouldDisplay:312 → fetch_bare_info: false
[TRACE] 10:02:41.493 terminal.go:Pwd() - 0s
[DEBUG] 10:02:41.493 terminal.go:ResolveSymlink:286 → C:\Windows\System32
[TRACE] 10:02:41.493 terminal.go:ResolveSymlink(C:\Windows\System32) - 522.1µs
[DEBUG] 10:02:41.493 win32_windows.go:isWriteable:299 → not current user or in group
[DEBUG] 10:02:41.493 win32_windows.go:isWriteable:299 → not current user or in group
[DEBUG] 10:02:41.493 win32_windows.go:isWriteable:299 → not current user or in group
[DEBUG] 10:02:41.493 win32_windows.go:isWriteable:299 → not current user or in group
[DEBUG] 10:02:41.493 win32_windows.go:isWriteable:303 → current user is member of S-1-5-32-544
[DEBUG] 10:02:41.493 win32_windows.go:isWriteable:311 ↓
SYNCHRONIZE
DELETE
READ_CONTROL
[DEBUG] 10:02:41.493 win32_windows.go:isWriteable:303 → current user is member of S-1-5-32-544
[DEBUG] 10:02:41.493 win32_windows.go:isWriteable:311 → GENERIC_ALL
[DEBUG] 10:02:41.493 win32_windows.go:isWriteable:303 → current user is member of S-1-5-32-545
[DEBUG] 10:02:41.493 win32_windows.go:isWriteable:311 ↓
SYNCHRONIZE
READ_CONTROL
[DEBUG] 10:02:41.493 win32_windows.go:isWriteable:303 → current user is member of S-1-5-32-545
[DEBUG] 10:02:41.493 win32_windows.go:isWriteable:311 ↓
GENERIC_READ
GENERIC_EXECUTE
[DEBUG] 10:02:41.493 win32_windows.go:isWriteable:299 → not current user or in group
[DEBUG] 10:02:41.493 win32_windows.go:isWriteable:299 → not current user or in group
[DEBUG] 10:02:41.493 win32_windows.go:isWriteable:299 → not current user or in group
[DEBUG] 10:02:41.493 win32_windows.go:isWriteable:299 → not current user or in group
[DEBUG] 10:02:41.493 win32_windows.go:isWriteable:299 → not current user or in group
[DEBUG] 10:02:41.493 win32_windows.go:isWriteable:317 → no write access
[TRACE] 10:02:41.493 terminal_windows.go:DirIsWritable() - 5.7468ms
[TRACE] 10:02:41.493 terminal.go:TemplateCache() - 0s
[ERROR] 10:02:41.494 terminal.go:HasParentFilePath:553 → CreateFile .git: The system cannot find the file specified.
[TRACE] 10:02:41.494 terminal.go:HasParentFilePath(.git) - 1.0499ms
[DEBUG] 10:02:41.495 terminal.go:CommandPath:389 → C:\Python313rc2\python.exe
[TRACE] 10:02:41.495 terminal.go:CommandPath(python) - 8.4565ms
[DEBUG] 10:02:41.496 terminal.go:HasFilesInDir:242 → false
[TRACE] 10:02:41.496 terminal.go:HasFilesInDir(pyvenv.cfg) - 556.6µs
[DEBUG] 10:02:41.496 terminal.go:HasFilesInDir:242 → false
[TRACE] 10:02:41.496 terminal.go:HasFilesInDir(pyvenv.cfg) - 0s
[DEBUG] 10:02:41.496 python.go:loadContext:83 → folder_name_fallback: true
[DEBUG] 10:02:41.496 terminal.go:Getenv:164 → NO DATA
[TRACE] 10:02:41.496 terminal.go:Getenv(VIRTUAL_ENV) - 0s
[DEBUG] 10:02:41.496 terminal.go:Getenv:164 → NO DATA
[TRACE] 10:02:41.496 terminal.go:Getenv(CONDA_ENV_PATH) - 0s
[DEBUG] 10:02:41.496 terminal.go:Getenv:164 → NO DATA
[TRACE] 10:02:41.496 terminal.go:Getenv(CONDA_DEFAULT_ENV) - 0s
[DEBUG] 10:02:41.496 text.go:Render:80 → rendering template: {{ .FormattedMs }}
[TRACE] 10:02:41.496 terminal.go:Flags() - 0s
[DEBUG] 10:02:41.496 text.go:Render:80 → rendering template: {{ .Name }}
[TRACE] 10:02:41.496 terminal.go:Flags() - 0s
[DEBUG] 10:02:41.496 text.go:Render:80 → rendering template: {{ .Path }}
[TRACE] 10:02:41.496 terminal.go:Flags() - 0s
[DEBUG] 10:02:41.496 text.go:Render:80 → rendering template: {{ if .Root }}{{ else }}{{ end }} {{ .UserName }}@{{ .HostName }}
[TRACE] 10:02:41.496 terminal.go:Flags() - 0s
[TRACE] 10:02:41.496 terminal.go:TemplateCache() - 0s
[TRACE] 10:02:41.496 terminal.go:TemplateCache() - 0s
[TRACE] 10:02:41.496 terminal.go:TemplateCache() - 0s
[DEBUG] 10:02:41.496 text.go:Render:80 → rendering template: diamond
[TRACE] 10:02:41.496 terminal.go:Flags() - 0s
[DEBUG] 10:02:41.496 text.go:Render:80 → rendering template: powerline
[TRACE] 10:02:41.496 terminal.go:Flags() - 0s
[DEBUG] 10:02:41.496 text.go:Render:80 → rendering template: diamond
[TRACE] 10:02:41.496 terminal.go:Flags() - 0s
[DEBUG] 10:02:41.496 text.go:Render:80 → rendering template: diamond
[TRACE] 10:02:41.496 terminal.go:Flags() - 0s
[DEBUG] 10:02:41.496 text.go:Render:80 → rendering template: powerline
[TRACE] 10:02:41.496 terminal.go:Flags() - 0s
[DEBUG] 10:02:41.496 text.go:Render:80 → rendering template: powerline
[TRACE] 10:02:41.496 terminal.go:Flags() - 0s
[DEBUG] 10:02:41.496 text.go:Render:80 → rendering template: diamond
[TRACE] 10:02:41.496 terminal.go:Flags() - 0s
[TRACE] 10:02:41.496 terminal.go:Shell() - 0s
[TRACE] 10:02:41.496 terminal.go:Flags() - 0s
[TRACE] 10:02:41.496 terminal.go:Flags() - 0s
[TRACE] 10:02:41.496 terminal.go:Flags() - 0s
[TRACE] 10:02:41.496 terminal.go:Pwd() - 0s
[TRACE] 10:02:41.496 terminal.go:Pwd() - 0s
[TRACE] 10:02:41.496 terminal.go:Pwd() - 0s
[DEBUG] 10:02:41.496 terminal_windows.go:58 → C:\Users\a.elhifnawy
[DEBUG] 10:02:41.496 terminal_windows.go:58 → C:\Users\a.elhifnawy
[TRACE] 10:02:41.496 terminal.go:GOOS() - 0s
[TRACE] 10:02:41.496 terminal.go:GOOS() - 0s
[DEBUG] 10:02:41.496 segment.go:SetEnabled:115 → segment: Time
[DEBUG] 10:02:41.496 segment.go:SetEnabled:115 → segment: Battery
[TRACE] 10:02:41.496 terminal.go:GOOS() - 0s
[DEBUG] 10:02:41.496 os.go:Enabled:34 →
[TRACE] 10:02:41.496 terminal_windows.go:IsWsl() - 0s
[TRACE] 10:02:41.496 terminal.go:TemplateCache() - 0s
[DEBUG] 10:02:41.496 time.go:Enabled:29 → 3:04:05 PM
[TRACE] 10:02:41.496 terminal.go:TemplateCache() - 0s
[TRACE] 10:02:41.507 terminal_windows_nix.go:BatteryState() - 10.494ms
[DEBUG] 10:02:41.507 battery.go:Enabled:59 →
[TRACE] 10:02:41.507 terminal.go:TemplateCache() - 0s
[DEBUG] 10:02:41.507 text.go:Render:80 → rendering template: {{ .CurrentDate | date .Format }}
[TRACE] 10:02:41.507 terminal.go:Flags() - 0s
[DEBUG] 10:02:41.507 text.go:Render:80 → rendering template: {{ if not .Error }}{{ .Icon }}{{ .Percentage }}{{ end }}{{ .Error }} <#ccffbb></>
[DEBUG] 10:02:41.508 text.go:Render:80 → rendering template: {{ if .WSL }}WSL at {{ end }}{{.Icon}} <#33ffaa></>
[TRACE] 10:02:41.508 terminal.go:Flags() - 0s
[TRACE] 10:02:41.508 terminal.go:Flags() - 0s
[TRACE] 10:02:41.508 terminal.go:TemplateCache() - 0s
[TRACE] 10:02:41.508 terminal.go:TemplateCache() - 0s
[TRACE] 10:02:41.509 terminal.go:TemplateCache() - 0s
[DEBUG] 10:02:41.509 text.go:Render:80 → rendering template: {{if eq "Charging" .State.String}}#40c4ff{{end}}
[TRACE] 10:02:41.509 terminal.go:Flags() - 0s
[TRACE] 10:02:41.509 terminal.go:TemplateCache() - 0s
[DEBUG] 10:02:41.509 text.go:Render:80 → rendering template: {{if eq "Discharging" .State.String}}#ff5722{{end}}
[TRACE] 10:02:41.509 terminal.go:Flags() - 0s
[TRACE] 10:02:41.509 terminal.go:TemplateCache() - 0s
[DEBUG] 10:02:41.509 text.go:Render:80 → rendering template: {{if eq "Full" .State.String}}#4caf50{{end}}
[TRACE] 10:02:41.509 terminal.go:Flags() - 0s
[TRACE] 10:02:41.509 terminal.go:TemplateCache() - 0s
[DEBUG] 10:02:41.509 text.go:Render:80 → rendering template: diamond
[TRACE] 10:02:41.509 terminal.go:Flags() - 0s
[DEBUG] 10:02:41.509 text.go:Render:80 → rendering template: {{if eq "Charging" .State.String}}#40c4ff{{end}}
[TRACE] 10:02:41.509 terminal.go:Flags() - 0s
[TRACE] 10:02:41.509 terminal.go:TemplateCache() - 0s
[DEBUG] 10:02:41.509 text.go:Render:80 → rendering template: {{if eq "Discharging" .State.String}}#ff5722{{end}}
[TRACE] 10:02:41.509 terminal.go:Flags() - 0s
[TRACE] 10:02:41.509 terminal.go:TemplateCache() - 0s
[DEBUG] 10:02:41.509 text.go:Render:80 → rendering template: {{if eq "Full" .State.String}}#4caf50{{end}}
[TRACE] 10:02:41.509 terminal.go:Flags() - 0s
[TRACE] 10:02:41.509 terminal.go:TemplateCache() - 0s
[DEBUG] 10:02:41.509 text.go:Render:80 → rendering template: diamond
[TRACE] 10:02:41.509 terminal.go:Flags() - 0s
[DEBUG] 10:02:41.509 text.go:Render:80 → rendering template: {{if eq "Charging" .State.String}}#40c4ff{{end}}
[TRACE] 10:02:41.509 terminal.go:Flags() - 0s
[TRACE] 10:02:41.510 terminal.go:TemplateCache() - 0s
[DEBUG] 10:02:41.510 text.go:Render:80 → rendering template: {{if eq "Discharging" .State.String}}#ff5722{{end}}
[TRACE] 10:02:41.510 terminal.go:Flags() - 0s
[TRACE] 10:02:41.510 terminal.go:TemplateCache() - 0s
[DEBUG] 10:02:41.510 text.go:Render:80 → rendering template: {{if eq "Full" .State.String}}#4caf50{{end}}
[TRACE] 10:02:41.510 terminal.go:Flags() - 0s
[TRACE] 10:02:41.510 terminal.go:TemplateCache() - 0s
[DEBUG] 10:02:41.510 text.go:Render:80 → rendering template: diamond
[TRACE] 10:02:41.510 terminal.go:Flags() - 0s
[DEBUG] 10:02:41.510 terminal_windows.go:TerminalWidth:116 → terminal width: 209
[TRACE] 10:02:41.510 terminal_windows.go:TerminalWidth() - 0s
[TRACE] 10:02:41.510 terminal.go:Shell() - 0s
[TRACE] 10:02:41.510 terminal.go:Flags() - 0s
[DEBUG] 10:02:41.510 status.go:Init:53 → {{ .Code }}
[TRACE] 10:02:41.510 terminal.go:Pwd() - 0s
[TRACE] 10:02:41.510 terminal.go:Flags() - 0s
[DEBUG] 10:02:41.510 terminal_windows.go:58 → C:\Users\a.elhifnawy
[TRACE] 10:02:41.510 terminal.go:Pwd() - 0s
[TRACE] 10:02:41.510 terminal.go:GOOS() - 0s
[DEBUG] 10:02:41.510 segment.go:SetEnabled:115 → segment: Status
[TRACE] 10:02:41.510 terminal.go:StatusCodes() - 0s
[DEBUG] 10:02:41.510 terminal_windows.go:58 → C:\Users\a.elhifnawy
[DEBUG] 10:02:41.510 text.go:Render:80 → rendering template: {{ .Code }}
[TRACE] 10:02:41.510 terminal.go:GOOS() - 0s
[TRACE] 10:02:41.510 terminal.go:Flags() - 0s
[DEBUG] 10:02:41.510 segment.go:SetEnabled:115 → segment: Text
[TRACE] 10:02:41.510 terminal.go:TemplateCache() - 0s
[TRACE] 10:02:41.510 terminal.go:TemplateCache() - 0s
[DEBUG] 10:02:41.510 status.go:Enabled:42 → always_enabled: true
[TRACE] 10:02:41.510 terminal.go:TemplateCache() - 0s
[DEBUG] 10:02:41.510 text.go:Render:80 → rendering template: {{ if gt .Code 0 }}❯ {{else}}❯❯ {{end}}
[TRACE] 10:02:41.510 terminal.go:Flags() - 0s
[DEBUG] 10:02:41.511 text.go:Render:80 → rendering template: ╰─
[TRACE] 10:02:41.511 terminal.go:Flags() - 0s
[TRACE] 10:02:41.511 terminal.go:TemplateCache() - 0s
[DEBUG] 10:02:41.511 text.go:Render:80 → rendering template: plain
[TRACE] 10:02:41.511 terminal.go:Flags() - 0s
[DEBUG] 10:02:41.511 text.go:Render:80 → rendering template: {{ if gt .Code 0 }}#ef5350{{ end }}
[TRACE] 10:02:41.511 terminal.go:Flags() - 0s
[TRACE] 10:02:41.511 terminal.go:TemplateCache() - 0s
[DEBUG] 10:02:41.511 text.go:Render:80 → rendering template: plain
[TRACE] 10:02:41.511 terminal.go:Flags() - 0s
[DEBUG] 10:02:41.511 text.go:Render:80 → rendering template: {{ if gt .Code 0 }}#ef5350{{ end }}
[TRACE] 10:02:41.511 terminal.go:Flags() - 0s
[TRACE] 10:02:41.511 terminal.go:TemplateCache() - 0s
[TRACE] 10:02:41.511 terminal.go:Shell() - 0s
[TRACE] 10:02:41.511 terminal.go:Shell() - 0s
[TRACE] 10:02:41.511 terminal.go:Pwd() - 0s
[DEBUG] 10:02:41.511 terminal.go:Getenv:164 → NO DATA
[TRACE] 10:02:41.511 terminal.go:Getenv(OSTYPE) - 0s
[TRACE] 10:02:41.511 terminal_windows.go:IsCygwin() - 0s
[TRACE] 10:02:41.511 terminal.go:Shell() - 0s
[DEBUG] 10:02:41.511 terminal.go:Getenv:164 → C:\Users\a.elhifnawy\AppData\Local
[TRACE] 10:02:41.511 terminal.go:Getenv(LOCALAPPDATA) - 0s
[TRACE] 10:02:41.512 terminal.go:CachePath() - 558.4µs
[TRACE] 10:02:41.512 terminal.go:Flags() - 0s |
Beta Was this translation helpful? Give feedback.
Answered by
JanDeDobbeleer
Sep 30, 2024
Replies: 1 comment 2 replies
-
@abdalmoniem something else in your |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@abdalmoniem as this is a built-in function, overriding that will ruin these lines inside oh-my-posh' script: