Closed meilon closed 1 year ago
@meilon this implies you have home_enabled
set to true
in your config, right? Because by default we don't display any version information inside the user home folder.
The only time "home" appears in my config is for home_icon, in none of the segments do I use home_enabled.
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"blocks": [
{
"alignment": "left",
"segments": [
{
"style": "plain",
"template": "{{ .UserName }}<yellow>@</><green>{{ .HostName }}</> ",
"type": "session"
},
{
"foreground": "lightBlue",
"properties": {
"home_icon": "~",
"mapped_locations": {
"C:\\Users\\carnold": "~"
},
"style": "full"
},
"style": "plain",
"template": "[{{ .Path }}]",
"type": "path"
},
{
"background": "#fffb38",
"background_templates": [
"{{ if or (.Working.Changed) (.Staging.Changed) }}#FF9248{{ end }}",
"{{ if and (gt .Ahead 0) (gt .Behind 0) }}#ff4500{{ end }}",
"{{ if gt .Ahead 0 }}#B388FF{{ end }}",
"{{ if gt .Behind 0 }}#B388FF{{ end }}"
],
"foreground": "#193549",
"powerline_symbol": "\ue0b0",
"properties": {
"branch_max_length": 25,
"fetch_stash_count": true,
"fetch_status": true,
"fetch_upstream_icon": true
},
"style": "plain",
"template": " {{ .UpstreamIcon }}{{ .HEAD }}{{ .BranchStatus }}{{ if .Working.Changed }} \uf044 {{ .Working.String }}{{ end }}{{ if and (.Working.Changed) (.Staging.Changed) }} |{{ end }}{{ if .Staging.Changed }} \uf046 {{ .Staging.String }}{{ end }}{{ if gt .StashCount 0 }} \uf692 {{ .StashCount }}{{ end }} ",
"type": "git"
},
{
"background": "#6CA35E",
"foreground": "#ffffff",
"powerline_symbol": "\ue0b0",
"properties": {
"fetch_version": true
},
"style": "plain",
"template": " \uf898 {{ if .PackageManagerIcon }}{{ .PackageManagerIcon }} {{ end }}{{ .Full }} ",
"type": "node"
},
{
"background": "#4063D8",
"foreground": "#111111",
"powerline_symbol": "\ue0b0",
"properties": {
"fetch_version": true
},
"style": "plain",
"template": " \ue624 {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }} ",
"type": "julia"
},
{
"background": "#FFDE57",
"foreground": "#111111",
"powerline_symbol": "\ue0b0",
"properties": {
"display_mode": "files",
"fetch_virtual_env": false
},
"style": "plain",
"template": " \ue235 {{ .Full }} ",
"type": "python"
},
{
"background": "#FEAC19",
"foreground": "#ffffff",
"powerline_symbol": "\ue0b0",
"properties": {
"display_mode": "files",
"fetch_version": false
},
"style": "plain",
"template": " \uf0e7{{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }} ",
"type": "azfunc"
},
{
"background": "#ffff66",
"foreground": "#111111",
"powerline_symbol": "\ue0b0",
"properties": {
"root_icon": "\uf0ad"
},
"style": "plain",
"template": " \uf0e7 ",
"type": "root"
},
{
"background": "#00897b",
"background_templates": [
"{{ if gt .Code 0 }}#e91e63{{ end }}"
],
"foreground": "#ffffff",
"properties": {
"always_enabled": true
},
"style": "plain",
"template": " > ",
"type": "exit"
}
],
"type": "prompt"
},
{
"segments": [
{
"background": "#f36943",
"background_templates": [
"{{if eq \"Charging\" .State.String}}#40c4ff{{end}}",
"{{if eq \"Discharging\" .State.String}}#ff5722{{end}}",
"{{if eq \"Full\" .State.String}}#4caf50{{end}}"
],
"foreground": "#ffffff",
"properties": {
"charged_icon": "\ue22f ",
"charging_icon": "\ue234 ",
"discharging_icon": "\ue231 "
},
"style": "plain",
"template": " {{ if not .Error }}{{ .Icon }}{{ .Percentage }}{{ end }}{{ .Error }}\uf295 ",
"type": "battery"
}
],
"type": "rprompt"
}
],
"console_title_template": "{{ .Shell }} in {{ .Folder }}",
"final_space": true,
"version": 2
}
So is it more a bug (or misconfiguration) than a feature request?
@meilon can you share the output of oh-my-posh debug
when in this situation?
Here you go:
Version: 17.5.2
Shell: pwsh (7.2.11)
Segments:
ConsoleTitle(true) - 1 ms - pwsh in carnold
session(true) - 0 ms - carnold@N21-002
path(true) - 1 ms - [~]
git(false) - 11 ms -
node(true) - 34 ms - 18.15.0
julia(false) - 0 ms -
python(false) - 1 ms -
azfunc(false) - 0 ms -
root(false) - 0 ms -
exit(true) - 1 ms - >
battery(true) - 19 ms - 94
Run duration: 82.3836ms
Cache path: C:\Users\carnold\AppData\Local\oh-my-posh
Config path: C:\Users\carnold\Nextcloud\ohmyposh.json
Logs:
[DEBUG] 09:31:31.887 shell.go:Getenv:398 → NO DATA
[TRACE] 09:31:31.887 shell.go:Getenv(TERM_PROGRAM) - 0s
[DEBUG] 09:31:31.887 shell.go:Getenv:398 → C:\Users\carnold\AppData\Local
[TRACE] 09:31:31.887 shell.go:Getenv(LOCALAPPDATA) - 0s
[TRACE] 09:31:31.887 shell_windows.go:CachePath() - 0s
[DEBUG] 09:31:31.888 shell.go:Getenv:398 → C:\Users\carnold\Nextcloud\ohmyposh.json
[TRACE] 09:31:31.888 shell.go:Getenv(POSH_THEME) - 0s
[DEBUG] 09:31:31.898 shell.go:Shell:645 → process name: pwsh.exe
[TRACE] 09:31:31.898 shell.go:Shell() - 9.8157ms
[TRACE] 09:31:31.898 shell.go:resolveConfigPath() - 9.8157ms
[TRACE] 09:31:31.898 shell.go:Init() - 10.3648ms
[TRACE] 09:31:31.898 shell.go:Flags() - 0s
[TRACE] 09:31:31.899 config.go:loadConfig() - 998.5µs
[TRACE] 09:31:31.899 shell.go:Flags() - 0s
[DEBUG] 09:31:31.899 shell.go:Getenv:398 → NO DATA
[TRACE] 09:31:31.899 shell.go:Getenv(OMP_CACHE_DISABLED) - 0s
[TRACE] 09:31:31.899 shell_windows.go:WindowsRegistryKeyValue(HKEY_CURRENT_USER\Software\Microsoft\Windows\DWM\ColorizationColor) - 0s
[TRACE] 09:31:31.899 shell.go:GOOS() - 0s
[TRACE] 09:31:31.899 shell.go:GOOS() - 0s
[TRACE] 09:31:31.899 shell.go:GOOS() - 0s
[TRACE] 09:31:31.899 shell.go:GOOS() - 0s
[TRACE] 09:31:31.899 shell.go:GOOS() - 0s
[TRACE] 09:31:31.899 shell.go:GOOS() - 0s
[TRACE] 09:31:31.899 shell.go:GOOS() - 0s
[TRACE] 09:31:31.899 shell.go:GOOS() - 0s
[TRACE] 09:31:31.899 shell.go:GOOS() - 0s
[TRACE] 09:31:31.899 shell.go:GOOS() - 0s
[TRACE] 09:31:31.899 shell.go:GOOS() - 0s
[TRACE] 09:31:31.899 shell.go:GOOS() - 0s
[TRACE] 09:31:31.899 shell.go:GOOS() - 0s
[TRACE] 09:31:31.899 shell.go:GOOS() - 0s
[TRACE] 09:31:31.899 shell.go:GOOS() - 0s
[TRACE] 09:31:31.899 shell.go:GOOS() - 0s
[TRACE] 09:31:31.899 shell.go:GOOS() - 0s
[TRACE] 09:31:31.899 shell.go:GOOS() - 0s
[TRACE] 09:31:31.899 shell.go:GOOS() - 0s
[DEBUG] 09:31:31.899 shell_windows.go:WindowsRegistryKeyValue:206 → ColorizationColor(DWORD): 0xC40078D7
[TRACE] 09:31:31.899 shell.go:Shell() - 0s
[DEBUG] 09:31:31.899 shell.go:Getenv:398 → 7.2.11
[TRACE] 09:31:31.899 shell.go:Getenv(POSH_SHELL_VERSION) - 0s
[DEBUG] 09:31:31.899 debug.go:PrintDebug:23 → Segment: Title
[TRACE] 09:31:31.899 shell_windows.go:Root() - 0s
[TRACE] 09:31:31.899 shell.go:Shell() - 0s
[TRACE] 09:31:31.899 shell.go:ErrorCode() - 0s
[TRACE] 09:31:31.899 shell_windows.go:IsWsl() - 0s
[TRACE] 09:31:31.899 shell.go:GOOS() - 0s
[DEBUG] 09:31:31.900 shell.go:Pwd:428 → C:\Users\carnold
[TRACE] 09:31:31.900 shell.go:Pwd() - 510.4µs
[DEBUG] 09:31:31.900 shell_windows.go:56 → H:\
[TRACE] 09:31:31.900 shell.go:GOOS() - 0s
[TRACE] 09:31:31.900 shell.go:GOOS() - 0s
[TRACE] 09:31:31.900 shell.go:GOOS() - 0s
[TRACE] 09:31:31.900 shell.go:GOOS() - 0s
[TRACE] 09:31:31.900 shell.go:GOOS() - 0s
[TRACE] 09:31:31.900 shell.go:GOOS() - 0s
[TRACE] 09:31:31.900 shell.go:GOOS() - 0s
[TRACE] 09:31:31.900 shell.go:GOOS() - 0s
[TRACE] 09:31:31.900 shell.go:GOOS() - 0s
[TRACE] 09:31:31.900 shell.go:GOOS() - 0s
[DEBUG] 09:31:31.900 shell.go:User:549 → carnold
[TRACE] 09:31:31.900 shell.go:User() - 0s
[DEBUG] 09:31:31.900 shell.go:Host:561 → N21-002
[TRACE] 09:31:31.900 shell.go:Host() - 0s
[TRACE] 09:31:31.900 shell.go:GOOS() - 0s
[DEBUG] 09:31:31.900 shell.go:Getenv:398 → NO DATA
[TRACE] 09:31:31.900 shell.go:Getenv(SHLVL) - 0s
[TRACE] 09:31:31.900 shell.go:TemplateCache() - 510.4µs
[TRACE] 09:31:31.900 shell.go:Flags() - 0s
[DEBUG] 09:31:31.900 block.go:Debug:280 → Segment: session
[TRACE] 09:31:31.900 shell.go:Pwd() - 0s
[DEBUG] 09:31:31.900 shell_windows.go:56 → H:\
[TRACE] 09:31:31.900 shell.go:GOOS() - 0s
[DEBUG] 09:31:31.900 shell.go:Getenv:398 → NO DATA
[TRACE] 09:31:31.900 shell.go:Getenv(SSH_CONNECTION) - 0s
[DEBUG] 09:31:31.900 shell.go:Getenv:398 → NO DATA
[TRACE] 09:31:31.900 shell.go:Getenv(SSH_CLIENT) - 0s
[TRACE] 09:31:31.900 shell.go:TemplateCache() - 0s
[TRACE] 09:31:31.901 shell.go:TemplateCache() - 0s
[TRACE] 09:31:31.901 shell.go:Shell() - 0s
[DEBUG] 09:31:31.901 block.go:Debug:280 → Segment: path
[TRACE] 09:31:31.901 shell.go:Pwd() - 0s
[DEBUG] 09:31:31.901 shell_windows.go:56 → H:\
[TRACE] 09:31:31.901 shell.go:GOOS() - 0s
[TRACE] 09:31:31.901 shell.go:Pwd() - 0s
[TRACE] 09:31:31.901 shell.go:Shell() - 0s
[TRACE] 09:31:31.901 shell.go:Flags() - 0s
[DEBUG] 09:31:31.901 properties.go:GetBool:22 → mapped_locations_enabled: true
[DEBUG] 09:31:31.901 properties.go:GetString:28 →
[DEBUG] 09:31:31.901 properties.go:GetString:28 →
[DEBUG] 09:31:31.901 shell_windows.go:56 → H:\
[TRACE] 09:31:31.901 shell.go:GOOS() - 0s
[TRACE] 09:31:31.901 shell.go:GOOS() - 0s
[DEBUG] 09:31:31.901 properties.go:GetString:28 → ~
[DEBUG] 09:31:31.901 properties.go:GetKeyValueMap:46 → mapped_locations: map[C:\Users\carnold:~]
[TRACE] 09:31:31.901 shell.go:GOOS() - 0s
[TRACE] 09:31:31.901 shell.go:GOOS() - 0s
[TRACE] 09:31:31.901 shell.go:PathSeparator() - 0s
[TRACE] 09:31:31.901 shell.go:GOOS() - 0s
[TRACE] 09:31:31.901 shell.go:GOOS() - 0s
[TRACE] 09:31:31.901 shell.go:GOOS() - 0s
[TRACE] 09:31:31.901 shell.go:GOOS() - 0s
[TRACE] 09:31:31.901 shell.go:GOOS() - 0s
[TRACE] 09:31:31.901 shell.go:GOOS() - 0s
[TRACE] 09:31:31.901 shell.go:GOOS() - 0s
[TRACE] 09:31:31.901 shell.go:PathSeparator() - 0s
[TRACE] 09:31:31.901 shell.go:PathSeparator() - 0s
[TRACE] 09:31:31.901 shell.go:GOOS() - 0s
[TRACE] 09:31:31.901 shell.go:GOOS() - 0s
[TRACE] 09:31:31.901 shell.go:GOOS() - 0s
[TRACE] 09:31:31.901 shell.go:PathSeparator() - 0s
[TRACE] 09:31:31.901 shell.go:GOOS() - 0s
[TRACE] 09:31:31.901 shell.go:GOOS() - 0s
[TRACE] 09:31:31.901 shell.go:GOOS() - 0s
[TRACE] 09:31:31.901 shell.go:PathSeparator() - 0s
[TRACE] 09:31:31.901 shell.go:GOOS() - 0s
[TRACE] 09:31:31.901 shell.go:GOOS() - 0s
[TRACE] 09:31:31.901 shell.go:GOOS() - 0s
[TRACE] 09:31:31.901 shell.go:PathSeparator() - 0s
[TRACE] 09:31:31.901 shell.go:GOOS() - 0s
[TRACE] 09:31:31.901 shell.go:GOOS() - 0s
[TRACE] 09:31:31.901 shell.go:GOOS() - 0s
[TRACE] 09:31:31.901 shell.go:PathSeparator() - 0s
[TRACE] 09:31:31.901 shell.go:Pwd() - 0s
[TRACE] 09:31:31.901 shell_windows.go:IsWsl() - 0s
[TRACE] 09:31:31.901 shell.go:StackCount() - 0s
[DEBUG] 09:31:31.902 win32_windows.go:isWriteable:299 → not current user or in group
[DEBUG] 09:31:31.902 win32_windows.go:isWriteable:303 → current user is member of S-1-5-32-544
[DEBUG] 09:31:31.902 win32_windows.go:isWriteable:311 ↓
WRITE_DAC
WRITE_OWNER
SYNCHRONIZE
DELETE
READ_CONTROL
[DEBUG] 09:31:31.902 win32_windows.go:isWriteable:313 → user has write access
[TRACE] 09:31:31.902 shell_windows.go:DirIsWritable() - 1.0001ms
[TRACE] 09:31:31.902 shell.go:TemplateCache() - 0s
[TRACE] 09:31:31.902 shell.go:TemplateCache() - 0s
[TRACE] 09:31:31.902 shell.go:Shell() - 0s
[DEBUG] 09:31:31.902 block.go:Debug:280 → Segment: git
[TRACE] 09:31:31.902 shell.go:Pwd() - 0s
[DEBUG] 09:31:31.902 shell_windows.go:56 → H:\
[TRACE] 09:31:31.902 shell.go:GOOS() - 0s
[TRACE] 09:31:31.902 shell.go:GOOS() - 0s
[DEBUG] 09:31:31.911 shell.go:CommandPath:600 → C:\Program Files\Git\cmd\git.exe
[TRACE] 09:31:31.912 shell.go:CommandPath(git.exe) - 9.5934ms
[TRACE] 09:31:31.912 shell.go:HasCommand(git.exe) - 10.093ms
[TRACE] 09:31:31.912 shell.go:Pwd() - 0s
[ERROR] 09:31:31.913 shell.go:HasParentFilePath:733 → CreateFile .git: Das System kann die angegebene Datei nicht finden.
[TRACE] 09:31:31.913 shell.go:HasParentFilePath(.git) - 961.4µs
[DEBUG] 09:31:31.913 properties.go:GetBool:22 → fetch_bare_info: false
[DEBUG] 09:31:31.913 block.go:Debug:280 → Segment: node
[TRACE] 09:31:31.913 shell.go:Pwd() - 0s
[DEBUG] 09:31:31.913 shell_windows.go:56 → H:\
[TRACE] 09:31:31.913 shell.go:GOOS() - 0s
[DEBUG] 09:31:31.913 properties.go:GetStringArray:52 → extensions: [*.js *.ts package.json .nvmrc pnpm-workspace.yaml .pnpmfile.cjs .npmrc .vue]
[DEBUG] 09:31:31.913 properties.go:GetStringArray:52 → folders: []
[DEBUG] 09:31:31.913 properties.go:GetBool:22 → home_enabled: false
[TRACE] 09:31:31.913 shell.go:Pwd() - 0s
[DEBUG] 09:31:31.913 shell_windows.go:56 → H:\
[DEBUG] 09:31:31.913 properties.go:GetString:28 → files
[DEBUG] 09:31:31.913 properties.go:GetBool:22 → fetch_package_manager: false
[TRACE] 09:31:31.913 shell.go:Pwd() - 0s
[DEBUG] 09:31:31.913 shell.go:HasFiles:450 → false
[TRACE] 09:31:31.913 shell.go:HasFiles(*.js) - 485µs
[TRACE] 09:31:31.913 shell.go:Pwd() - 0s
[DEBUG] 09:31:31.913 shell.go:HasFiles:450 → false
[TRACE] 09:31:31.913 shell.go:HasFiles(*.ts) - 0s
[TRACE] 09:31:31.913 shell.go:Pwd() - 0s
[DEBUG] 09:31:31.913 shell.go:HasFiles:450 → false
[TRACE] 09:31:31.913 shell.go:HasFiles(package.json) - 0s
[TRACE] 09:31:31.913 shell.go:Pwd() - 0s
[DEBUG] 09:31:31.913 shell.go:HasFiles:450 → false
[TRACE] 09:31:31.913 shell.go:HasFiles(.nvmrc) - 0s
[TRACE] 09:31:31.913 shell.go:Pwd() - 0s
[DEBUG] 09:31:31.913 shell.go:HasFiles:450 → false
[TRACE] 09:31:31.913 shell.go:HasFiles(pnpm-workspace.yaml) - 0s
[TRACE] 09:31:31.913 shell.go:Pwd() - 0s
[DEBUG] 09:31:31.913 shell.go:HasFiles:450 → false
[TRACE] 09:31:31.913 shell.go:HasFiles(.pnpmfile.cjs) - 0s
[TRACE] 09:31:31.913 shell.go:Pwd() - 0s
[DEBUG] 09:31:31.913 shell.go:HasFiles:447 → true
[TRACE] 09:31:31.913 shell.go:HasFiles(.npmrc) - 0s
[DEBUG] 09:31:31.913 properties.go:GetBool:22 → fetch_version: true
[DEBUG] 09:31:31.920 shell.go:CommandPath:600 → C:\Program Files\nodejs\node.exe
[TRACE] 09:31:31.920 shell.go:CommandPath(node) - 7.0318ms
[TRACE] 09:31:31.920 shell.go:HasCommand(node) - 7.0318ms
[DEBUG] 09:31:31.947 shell.go:RunCommand:579 → v18.15.0
[TRACE] 09:31:31.947 shell.go:RunCommand(node --version) - 26.4919ms
[DEBUG] 09:31:31.947 properties.go:GetString:28 → https://github.com/nodejs/node/blob/master/doc/changelogs/CHANGELOG_V{{ .Major }}.md#{{ .Full }}
[TRACE] 09:31:31.947 shell.go:TemplateCache() - 0s
[TRACE] 09:31:31.947 shell.go:Pwd() - 0s
[ERROR] 09:31:31.947 shell.go:FileContent:519 → open C:\Users\carnold\.nvmrc: Das System kann die angegebene Datei nicht finden.
[TRACE] 09:31:31.947 shell.go:FileContent(.nvmrc) - 0s
[TRACE] 09:31:31.947 shell.go:TemplateCache() - 0s
[TRACE] 09:31:31.948 shell.go:TemplateCache() - 0s
[TRACE] 09:31:31.948 shell.go:Shell() - 0s
[DEBUG] 09:31:31.948 block.go:Debug:280 → Segment: julia
[TRACE] 09:31:31.948 shell.go:Pwd() - 0s
[DEBUG] 09:31:31.948 shell_windows.go:56 → H:\
[TRACE] 09:31:31.948 shell.go:GOOS() - 0s
[DEBUG] 09:31:31.948 properties.go:GetStringArray:52 → extensions: [*.jl]
[DEBUG] 09:31:31.948 properties.go:GetStringArray:52 → folders: []
[DEBUG] 09:31:31.948 properties.go:GetBool:22 → home_enabled: false
[TRACE] 09:31:31.948 shell.go:Pwd() - 0s
[DEBUG] 09:31:31.948 shell_windows.go:56 → H:\
[DEBUG] 09:31:31.948 properties.go:GetString:28 → files
[TRACE] 09:31:31.948 shell.go:Pwd() - 0s
[DEBUG] 09:31:31.948 shell.go:HasFiles:450 → false
[TRACE] 09:31:31.948 shell.go:HasFiles(*.jl) - 0s
[DEBUG] 09:31:31.948 block.go:Debug:280 → Segment: python
[DEBUG] 09:31:31.948 properties.go:GetString:28 → files
[TRACE] 09:31:31.948 shell.go:Pwd() - 0s
[DEBUG] 09:31:31.948 shell_windows.go:56 → H:\
[TRACE] 09:31:31.948 shell.go:GOOS() - 0s
[DEBUG] 09:31:31.948 properties.go:GetStringArray:52 → extensions: [*.py *.ipynb pyproject.toml venv.bak]
[DEBUG] 09:31:31.948 properties.go:GetStringArray:52 → folders: [.venv venv virtualenv env venv-win pyenv-win]
[DEBUG] 09:31:31.948 properties.go:GetBool:22 → home_enabled: false
[TRACE] 09:31:31.948 shell.go:Pwd() - 0s
[DEBUG] 09:31:31.948 shell_windows.go:56 → H:\
[DEBUG] 09:31:31.948 properties.go:GetBool:22 → fetch_virtual_env: false
[TRACE] 09:31:31.948 shell.go:Pwd() - 0s
[DEBUG] 09:31:31.948 shell.go:HasFiles:450 → false
[TRACE] 09:31:31.948 shell.go:HasFiles(*.py) - 646.8µs
[TRACE] 09:31:31.948 shell.go:Pwd() - 0s
[DEBUG] 09:31:31.948 shell.go:HasFiles:450 → false
[TRACE] 09:31:31.948 shell.go:HasFiles(*.ipynb) - 0s
[TRACE] 09:31:31.948 shell.go:Pwd() - 0s
[DEBUG] 09:31:31.948 shell.go:HasFiles:450 → false
[TRACE] 09:31:31.948 shell.go:HasFiles(pyproject.toml) - 0s
[TRACE] 09:31:31.948 shell.go:Pwd() - 0s
[DEBUG] 09:31:31.948 shell.go:HasFiles:450 → false
[TRACE] 09:31:31.948 shell.go:HasFiles(venv.bak) - 0s
[DEBUG] 09:31:31.949 shell.go:HasFolder:493 → false
[TRACE] 09:31:31.949 shell.go:HasFolder(.venv) - 519.4µs
[DEBUG] 09:31:31.949 shell.go:HasFolder:493 → false
[TRACE] 09:31:31.949 shell.go:HasFolder(venv) - 0s
[DEBUG] 09:31:31.949 shell.go:HasFolder:493 → false
[TRACE] 09:31:31.949 shell.go:HasFolder(virtualenv) - 53.5µs
[DEBUG] 09:31:31.949 shell.go:HasFolder:493 → false
[TRACE] 09:31:31.949 shell.go:HasFolder(env) - 0s
[DEBUG] 09:31:31.949 shell.go:HasFolder:493 → false
[TRACE] 09:31:31.949 shell.go:HasFolder(venv-win) - 0s
[DEBUG] 09:31:31.949 shell.go:HasFolder:493 → false
[TRACE] 09:31:31.949 shell.go:HasFolder(pyenv-win) - 0s
[DEBUG] 09:31:31.949 block.go:Debug:280 → Segment: azfunc
[TRACE] 09:31:31.949 shell.go:Pwd() - 0s
[DEBUG] 09:31:31.949 shell_windows.go:56 → H:\
[TRACE] 09:31:31.949 shell.go:GOOS() - 0s
[DEBUG] 09:31:31.949 properties.go:GetStringArray:52 → extensions: [host.json local.settings.json function.json]
[DEBUG] 09:31:31.949 properties.go:GetStringArray:52 → folders: []
[DEBUG] 09:31:31.949 properties.go:GetBool:22 → home_enabled: false
[TRACE] 09:31:31.949 shell.go:Pwd() - 0s
[DEBUG] 09:31:31.949 shell_windows.go:56 → H:\
[DEBUG] 09:31:31.949 properties.go:GetString:28 → files
[TRACE] 09:31:31.949 shell.go:Pwd() - 0s
[DEBUG] 09:31:31.949 shell.go:HasFiles:450 → false
[TRACE] 09:31:31.949 shell.go:HasFiles(host.json) - 0s
[TRACE] 09:31:31.949 shell.go:Pwd() - 0s
[DEBUG] 09:31:31.949 shell.go:HasFiles:450 → false
[TRACE] 09:31:31.949 shell.go:HasFiles(local.settings.json) - 0s
[TRACE] 09:31:31.949 shell.go:Pwd() - 0s
[DEBUG] 09:31:31.949 shell.go:HasFiles:450 → false
[TRACE] 09:31:31.949 shell.go:HasFiles(function.json) - 0s
[DEBUG] 09:31:31.949 block.go:Debug:280 → Segment: root
[TRACE] 09:31:31.949 shell.go:Pwd() - 0s
[DEBUG] 09:31:31.949 shell_windows.go:56 → H:\
[TRACE] 09:31:31.949 shell.go:GOOS() - 0s
[TRACE] 09:31:31.949 shell_windows.go:Root() - 0s
[DEBUG] 09:31:31.949 block.go:Debug:280 → Segment: exit
[TRACE] 09:31:31.949 shell.go:Pwd() - 0s
[DEBUG] 09:31:31.949 shell_windows.go:56 → H:\
[TRACE] 09:31:31.949 shell.go:GOOS() - 0s
[TRACE] 09:31:31.949 shell.go:ErrorCode() - 0s
[DEBUG] 09:31:31.949 properties.go:GetBool:22 → always_enabled: true
[TRACE] 09:31:31.949 shell.go:TemplateCache() - 0s
[TRACE] 09:31:31.949 shell.go:Shell() - 0s
[TRACE] 09:31:31.950 shell.go:TemplateCache() - 0s
[TRACE] 09:31:31.950 shell.go:Flags() - 0s
[DEBUG] 09:31:31.950 block.go:Debug:280 → Segment: battery
[TRACE] 09:31:31.950 shell.go:Pwd() - 0s
[DEBUG] 09:31:31.950 shell_windows.go:56 → H:\
[TRACE] 09:31:31.950 shell.go:GOOS() - 0s
[TRACE] 09:31:31.950 shell_windows.go:IsWsl() - 0s
[TRACE] 09:31:31.969 shell_windows_nix.go:BatteryState() - 19.1752ms
[DEBUG] 09:31:31.969 properties.go:GetString:28 →
[TRACE] 09:31:31.969 shell.go:TemplateCache() - 0s
[TRACE] 09:31:31.969 shell.go:TemplateCache() - 0s
[TRACE] 09:31:31.969 shell.go:Shell() - 0s
[TRACE] 09:31:31.970 shell.go:TemplateCache() - 0s
[TRACE] 09:31:31.970 shell.go:TemplateCache() - 0s
[TRACE] 09:31:31.970 shell.go:TemplateCache() - 0s
[DEBUG] 09:31:31.970 shell.go:Getenv:398 → C:\Users\carnold\AppData\Local
[TRACE] 09:31:31.970 shell.go:Getenv(LOCALAPPDATA) - 0s
[TRACE] 09:31:31.970 shell_windows.go:CachePath() - 0s
[TRACE] 09:31:31.970 shell.go:Flags() - 0s
@meilon that debug output shows that your HOME
folder is H:\
. I'm assuming that's also why you mapped your real HOME
folder using mapped_locations
[TRACE] 09:31:31.913 shell.go:Pwd() - 0s
[DEBUG] 09:31:31.913 shell_windows.go:56 → H:\
Can I get the output of the following environment variables:
HOME
HOMEDRIVE
HOMEPATH
USERPROFILE
yep, this setup is from work where the My Documents
folder is on a network share. Here are the values anonymized you requested:
HOMEDRIVE=H:
HOMEPATH=\
HOMESHARE=\\host\share\CArnold
USERPROFILE=C:\Users\carnold
@meilon so, this is where the issue pops up. As there's no HOME
variable, it defaults to HOMEDRIVE
+ HOMEPATH
which results in H:\
so according to oh-my-posh H:\
is your users HOME
. To fix this issue, and have a more "normal" setup, add the following environment variable: HOME="C:\Users\carnold"
This issue has been automatically locked since there has not been any recent activity (i.e. last half year) after it was closed. It helps our maintainers focus on the active issues. If you have found a problem that seems similar, please open a discussion first, complete the body with all the details necessary to reproduce, and mention this issue as reference.
Code of Conduct
What would you like to see changed/added?
If there is a .npmrc file in my home directory, the node version information gets displayed. I'd like this not to happen.
So either a check if the found .npmrc is in an non-project directory (paths here: https://docs.npmjs.com/cli/v7/configuring-npm/npmrc#files) would need to be added or the checking of this file removed. Because I don't do node/npm stuff that often I renamed my .npmrc for now, but in my opinion that isn't the right way.
What do you guys think?
I'm on Windows PowerShell 7 if that is important.