JanDeDobbeleer / oh-my-posh

The most customisable and low-latency cross platform/shell prompt renderer
https://ohmyposh.dev
MIT License
17.47k stars 2.39k forks source link

theme will not load or not change? #2497

Closed cxbignekoc closed 2 years ago

cxbignekoc commented 2 years ago

Code of Conduct

What happened?

OS: Ubuntu Mate Terminal: Tilix with VTEconfig warning also !!

Install Routine: https://ohmyposh.dev/docs/installation/linux -manual option


i install all and also some fonts...i got the tutorial from the link below.

At first try from your site:

eval "$(oh-my-posh init bash)" exec bash

and it worked. but i got the wrong font...fixed

then i try the following...

i edit this line in bashrc (just below all)

eval "$(oh-my-posh --init --shell bash --config ~/poshthemes/agnosterplus.omp.json)" exec bash

Theme changed again, trying another one:

eval "$(oh-my-posh --init --shell bash --config ~/poshthemes/pararussel.omp.json)" exec bash

but the previous theme is just shown, but its the same command in bashrc.

i got this from here:

https://www.nextpertise.net/posts/220124_oh_my_posh/

Theme

pararussel

agnosterplus

init

What OS are you seeing the problem on?

Linux

Which shell are you using?

bash

Log output

Run duration: 19.240422ms

Cache path: /home/c/.cache/oh-my-posh

Config path: /home/c/poshthemes/pararussel.omp.json

Logs:

2022/07/09 12:29:59 debug: Getenv

2022/07/09 12:29:59 Getenv duration: 6.919µs, args: XDG_CACHE_HOME
2022/07/09 12:29:59 CachePath duration: 19.666µs, args: 
2022/07/09 12:29:59 debug: Getenv
/home/c/poshthemes/pararussel.omp.json
2022/07/09 12:29:59 Getenv duration: 6.546µs, args: POSH_THEME
2022/07/09 12:29:59 resolveConfigPath duration: 8.742µs, args: 
2022/07/09 12:29:59 Init duration: 68.703µs, args: 
2022/07/09 12:29:59 Flags duration: 50ns, args: 
2022/07/09 12:29:59 config.loadConfig duration: 5.015µs, args: 
2022/07/09 12:29:59 Flags duration: 37ns, args: 
2022/07/09 12:29:59 debug: Getenv

2022/07/09 12:29:59 Getenv duration: 791ns, args: OMP_CACHE_DISABLED
2022/07/09 12:29:59 Root duration: 542ns, args: 
2022/07/09 12:29:59 Shell duration: 17.034836ms, args: 
2022/07/09 12:29:59 ErrorCode duration: 51ns, args: 
2022/07/09 12:29:59 debug: Getenv

2022/07/09 12:29:59 Getenv duration: 1.265µs, args: WSL_DISTRO_NAME
2022/07/09 12:29:59 IsWsl duration: 3.132µs, args: 
2022/07/09 12:29:59 debug: Pwd
/home/c
2022/07/09 12:29:59 Pwd duration: 16.187µs, args: 
2022/07/09 12:29:59 PathSeparator duration: 52ns, args: 
2022/07/09 12:29:59 PathSeparator duration: 39ns, args: 
2022/07/09 12:29:59 debug: User
c
2022/07/09 12:29:59 User duration: 955ns, args: 
2022/07/09 12:29:59 debug: Host
box
2022/07/09 12:29:59 Host duration: 1.817µs, args: 
2022/07/09 12:29:59 GOOS duration: 50ns, args: 
2022/07/09 12:29:59 TemplateCache duration: 17.119596ms, args: 
2022/07/09 12:29:59 Flags duration: 51ns, args: 
2022/07/09 12:29:59 debug: Pwd
/home/c
2022/07/09 12:29:59 Pwd duration: 916ns, args: 
2022/07/09 12:29:59 GOOS duration: 27ns, args: 
2022/07/09 12:29:59 debug: Getenv

2022/07/09 12:29:59 Getenv duration: 945ns, args: SSH_CONNECTION
2022/07/09 12:29:59 debug: Getenv

2022/07/09 12:29:59 Getenv duration: 2.453µs, args: SSH_CLIENT
2022/07/09 12:29:59 TemplateCache duration: 59ns, args: 
2022/07/09 12:29:59 TemplateCache duration: 117ns, args: 
2022/07/09 12:29:59 Shell duration: 91ns, args: 
2022/07/09 12:29:59 debug: Pwd
/home/c
2022/07/09 12:29:59 Pwd duration: 1.334µs, args: 
2022/07/09 12:29:59 GOOS duration: 43ns, args: 
2022/07/09 12:29:59 debug: Pwd
/home/c
2022/07/09 12:29:59 Pwd duration: 632ns, args: 
2022/07/09 12:29:59 Flags duration: 50ns, args: 
2022/07/09 12:29:59 debug: Pwd
/home/c
2022/07/09 12:29:59 Pwd duration: 766ns, args: 
2022/07/09 12:29:59 GOOS duration: 27ns, args: 
2022/07/09 12:29:59 GOOS duration: 28ns, args: 
2022/07/09 12:29:59 PathSeparator duration: 44ns, args: 
2022/07/09 12:29:59 PathSeparator duration: 35ns, args: 
2022/07/09 12:29:59 PathSeparator duration: 40ns, args: 
2022/07/09 12:29:59 PathSeparator duration: 29ns, args: 
2022/07/09 12:29:59 GOOS duration: 41ns, args: 
2022/07/09 12:29:59 debug: Getenv

2022/07/09 12:29:59 Getenv duration: 854ns, args: WSL_DISTRO_NAME
2022/07/09 12:29:59 IsWsl duration: 2.304µs, args: 
2022/07/09 12:29:59 StackCount duration: 63ns, args: 
2022/07/09 12:29:59 DirIsWritable duration: 5.387µs, args: 
2022/07/09 12:29:59 TemplateCache duration: 52ns, args: 
2022/07/09 12:29:59 TemplateCache duration: 117ns, args: 
2022/07/09 12:29:59 Shell duration: 52ns, args: 
2022/07/09 12:29:59 debug: Pwd
/home/c
2022/07/09 12:29:59 Pwd duration: 1.107µs, args: 
2022/07/09 12:29:59 GOOS duration: 53ns, args: 
2022/07/09 12:29:59 Shell duration: 46ns, args: 
2022/07/09 12:29:59 Flags duration: 49ns, args: 
2022/07/09 12:29:59 TemplateCache duration: 54ns, args: 
2022/07/09 12:29:59 TemplateCache duration: 102ns, args: 
2022/07/09 12:29:59 Shell duration: 66ns, args: 
2022/07/09 12:29:59 debug: Pwd
/home/c
2022/07/09 12:29:59 Pwd duration: 1.066µs, args: 
2022/07/09 12:29:59 GOOS duration: 53ns, args: 
2022/07/09 12:29:59 TemplateCache duration: 53ns, args: 
2022/07/09 12:29:59 TemplateCache duration: 80ns, args: 
2022/07/09 12:29:59 Shell duration: 40ns, args: 
2022/07/09 12:29:59 debug: Pwd
/home/c
2022/07/09 12:29:59 Pwd duration: 1.055µs, args: 
2022/07/09 12:29:59 GOOS duration: 46ns, args: 
2022/07/09 12:29:59 ErrorCode duration: 46ns, args: 
2022/07/09 12:29:59 TemplateCache duration: 45ns, args: 
2022/07/09 12:29:59 TemplateCache duration: 99ns, args: 
2022/07/09 12:29:59 Shell duration: 38ns, args: 
2022/07/09 12:29:59 TemplateCache duration: 131ns, args: 
2022/07/09 12:29:59 debug: Getenv

2022/07/09 12:29:59 Getenv duration: 1.252µs, args: XDG_CACHE_HOME
2022/07/09 12:29:59 CachePath duration: 20.813µs, args: 
2022/07/09 12:29:59 Flags duration: 38ns, args:
JanDeDobbeleer commented 2 years ago

@cxbignekoc in the meantime, the init command changed to this:

eval "$(oh-my-posh init bash --config ~/poshthemes/agnosterplus.omp.json)"

The easiest way to play around with themes is to either change the value in .bashrc and reload the shell, or adjust the POSH_THEME environment variable and add the full path:

export POSH_THEME="/home/c/poshthemes/pararussel.omp.json"

Off course it requires that file to be at that location.

github-actions[bot] commented 10 months ago

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.