Skip to content

Oh-my-posh gives config error when trying to set it up as non root user. #4115

Closed Answered by JanDeDobbeleer
neoandmatrix asked this question in Troubleshoot
Discussion options

You must be logged in to vote

The issue is that you have added the configuration to the root user's HOME folder, and not your user's home folder. You reference the config using ~ which gets resolved to the current user HOME directory which differs between users. In the logs you see the following:

[ERROR] 15:55:04.764 config.go:loadConfig:159 → open /home/tushar/.cache/oh-my-posh/themes/microverse-power.omp.json: no such file or directory

You would need to either reference the same location as the root user's HOME (probably home/root/.cache/oh-my-posh/themes/microverse-power.omp.json) if that's accessible by your user, or add the configuration to a folder accessible by both.

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@neoandmatrix
Comment options

@goldenfox-vip
Comment options

@goldenfox-vip
Comment options

@emekaelo
Comment options

Answer selected by neoandmatrix
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 bug Something isn't working
4 participants
Converted from issue

This discussion was converted from issue #4114 on August 02, 2023 10:33.