JanDeDobbeleer / oh-my-posh

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

"Set-Posh-Prompt -Theme" is only working for the current session #2070

Closed Zl0gix closed 2 years ago

Zl0gix commented 2 years ago

Code of Conduct

What happened?

I set a theme for powershell in the new windows terminal, it works, I close the tab and re-open it, the theme is no longer active

image

Theme

It happened with atomic and Paradox

What OS are you seeing the problem on?

Windows

Which shell are you using?

powershell

Log output

Version: 7.60.0

Segments:

ConsoleTitle(false) -   0 ms - 
root(true)     -   0 ms - ¯é░ ´âº 
session(true)  -   0 ms - ¯é░ rdrap@DESKTOP-2PTOS91 
path(true)     -   0 ms - ¯é░ ~ ¯é▒ Fonts ¯é▒ Posh-logs 
git(false)     -  24 ms - 
python(false)  -   0 ms - 
exit(false)    -   0 ms - 
text(true)     -   0 ms - ÔØ» 

Run duration: 26.5369ms

Cache path: C:\Users\rdrap\AppData\Local\oh-my-posh

Logs:

2022/04/11 03:42:05 Flags duration: 0s, args: 
2022/04/11 03:42:05 Flags duration: 0s, args: 
2022/04/11 03:42:05 debug: Getenv

2022/04/11 03:42:05 Getenv duration: 0s, args: OMP_CACHE_DISABLED
2022/04/11 03:42:05 Root duration: 80.1┬Ás, args: 
2022/04/11 03:42:05 Shell duration: 0s, args: 
2022/04/11 03:42:05 ErrorCode duration: 0s, args: 
2022/04/11 03:42:05 IsWsl duration: 0s, args: 
2022/04/11 03:42:05 debug: Pwd
C:\Users\rdrap\Fonts\Posh-logs
2022/04/11 03:42:05 Pwd duration: 0s, args: 
2022/04/11 03:42:05 debug: Home
C:\Users\rdrap
2022/04/11 03:42:05 PathSeparator duration: 0s, args: 
2022/04/11 03:42:05 PathSeparator duration: 0s, args: 
2022/04/11 03:42:05 PathSeparator duration: 0s, args: 
2022/04/11 03:42:05 PathSeparator duration: 0s, args: 
2022/04/11 03:42:05 PathSeparator duration: 0s, args: 
2022/04/11 03:42:05 PathSeparator duration: 0s, args: 
2022/04/11 03:42:05 PathSeparator duration: 0s, args: 
2022/04/11 03:42:05 PathSeparator duration: 0s, args: 
2022/04/11 03:42:05 PathSeparator duration: 0s, args: 
2022/04/11 03:42:05 PathSeparator duration: 0s, args: 
2022/04/11 03:42:05 PathSeparator duration: 0s, args: 
2022/04/11 03:42:05 debug: User
rdrap
2022/04/11 03:42:05 User duration: 0s, args: 
2022/04/11 03:42:05 debug: Host
DESKTOP-2PTOS91
2022/04/11 03:42:05 Host duration: 0s, args: 
2022/04/11 03:42:05 GOOS duration: 0s, args: 
2022/04/11 03:42:05 TemplateCache duration: 80.1┬Ás, args: 
2022/04/11 03:42:05 debug: Pwd
C:\Users\rdrap\Fonts\Posh-logs
2022/04/11 03:42:05 Pwd duration: 0s, args: 
2022/04/11 03:42:05 debug: Home
C:\Users\rdrap
2022/04/11 03:42:05 GOOS duration: 0s, args: 
2022/04/11 03:42:05 Root duration: 0s, args: 
2022/04/11 03:42:05 TemplateCache duration: 0s, args: 
2022/04/11 03:42:05 debug: Pwd
C:\Users\rdrap\Fonts\Posh-logs
2022/04/11 03:42:05 Pwd duration: 0s, args: 
2022/04/11 03:42:05 debug: Home
C:\Users\rdrap
2022/04/11 03:42:05 GOOS duration: 0s, args: 
2022/04/11 03:42:05 debug: Getenv

2022/04/11 03:42:05 Getenv duration: 0s, args: SSH_CONNECTION
2022/04/11 03:42:05 debug: Getenv

2022/04/11 03:42:05 Getenv duration: 0s, args: SSH_CLIENT
2022/04/11 03:42:05 TemplateCache duration: 0s, args: 
2022/04/11 03:42:05 debug: Pwd
C:\Users\rdrap\Fonts\Posh-logs
2022/04/11 03:42:05 Pwd duration: 0s, args: 
2022/04/11 03:42:05 debug: Home
C:\Users\rdrap
2022/04/11 03:42:05 GOOS duration: 0s, args: 
2022/04/11 03:42:05 debug: Pwd
C:\Users\rdrap\Fonts\Posh-logs
2022/04/11 03:42:05 Pwd duration: 0s, args: 
2022/04/11 03:42:05 Flags duration: 0s, args: 
2022/04/11 03:42:05 debug: Pwd
C:\Users\rdrap\Fonts\Posh-logs
2022/04/11 03:42:05 Pwd duration: 0s, args: 
2022/04/11 03:42:05 debug: Home
C:\Users\rdrap
2022/04/11 03:42:05 GOOS duration: 0s, args: 
2022/04/11 03:42:05 GOOS duration: 0s, args: 
2022/04/11 03:42:05 PathSeparator duration: 0s, args: 
2022/04/11 03:42:05 GOOS duration: 0s, args: 
2022/04/11 03:42:05 IsWsl duration: 0s, args: 
2022/04/11 03:42:05 StackCount duration: 0s, args: 
2022/04/11 03:42:05 TemplateCache duration: 0s, args: 
2022/04/11 03:42:05 debug: Pwd
C:\Users\rdrap\Fonts\Posh-logs
2022/04/11 03:42:05 Pwd duration: 0s, args: 
2022/04/11 03:42:05 debug: Home
C:\Users\rdrap
2022/04/11 03:42:05 GOOS duration: 0s, args: 
2022/04/11 03:42:05 GOOS duration: 0s, args: 
2022/04/11 03:42:05 HasCommand duration: 23.9194ms, args: git.exe
2022/04/11 03:42:05 debug: Pwd
C:\Users\rdrap\Fonts\Posh-logs
2022/04/11 03:42:05 Pwd duration: 0s, args: 
2022/04/11 03:42:05 error: HasParentFilePath
CreateFile C:\.git: The system cannot find the file specified.
2022/04/11 03:42:05 HasParentFilePath duration: 958.7┬Ás, args: .git
2022/04/11 03:42:05 debug: Pwd
C:\Users\rdrap\Fonts\Posh-logs
2022/04/11 03:42:05 Pwd duration: 0s, args: 
2022/04/11 03:42:05 debug: Home
C:\Users\rdrap
2022/04/11 03:42:05 GOOS duration: 0s, args: 
2022/04/11 03:42:05 debug: Pwd
C:\Users\rdrap\Fonts\Posh-logs
2022/04/11 03:42:05 Pwd duration: 0s, args: 
2022/04/11 03:42:05 debug: Home
C:\Users\rdrap
2022/04/11 03:42:05 debug: Getenv

2022/04/11 03:42:05 Getenv duration: 0s, args: VIRTUAL_ENV
2022/04/11 03:42:05 debug: Getenv

2022/04/11 03:42:05 Getenv duration: 0s, args: CONDA_ENV_PATH
2022/04/11 03:42:05 debug: Getenv

2022/04/11 03:42:05 Getenv duration: 0s, args: CONDA_DEFAULT_ENV
2022/04/11 03:42:05 debug: Getenv

2022/04/11 03:42:05 Getenv duration: 0s, args: PYENV_VERSION
2022/04/11 03:42:05 debug: Pwd
C:\Users\rdrap\Fonts\Posh-logs
2022/04/11 03:42:05 Pwd duration: 0s, args: 
2022/04/11 03:42:05 debug: Home
C:\Users\rdrap
2022/04/11 03:42:05 GOOS duration: 0s, args: 
2022/04/11 03:42:05 ErrorCode duration: 0s, args: 
2022/04/11 03:42:05 ErrorCode duration: 0s, args: 
2022/04/11 03:42:05 debug: Pwd
C:\Users\rdrap\Fonts\Posh-logs
2022/04/11 03:42:05 Pwd duration: 0s, args: 
2022/04/11 03:42:05 debug: Home
C:\Users\rdrap
2022/04/11 03:42:05 GOOS duration: 0s, args: 
2022/04/11 03:42:05 TemplateCache duration: 0s, args: 
2022/04/11 03:42:05 debug: Getenv
C:\Users\rdrap\AppData\Local
2022/04/11 03:42:05 Getenv duration: 0s, args: LOCALAPPDATA
2022/04/11 03:42:05 CachePath duration: 1.0034ms, args:
JanDeDobbeleer commented 2 years ago

@Zl0gix that's not a bug but by design. You need to add that line to your $PROFILE.

Zl0gix commented 2 years ago

Thank you for your reply !

github-actions[bot] commented 9 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.