2

I have installed powershell 7, basically pwsh.exe.

When I launch powershell 7 inside Windows Terminal App, it uses Windows Terminal Color Theme profile. But when I launch pwsh.exe separately, it doesn't use the color theme, instead it's using the default black background color theme.

How can I let pwsh.exe use Windows Terminal's color theme when launching it separately? Thanks a lot.

sgon00
  • 605
  • 2
  • 10
  • 20
  • 2
    i don't think you can. when running ps7 directly, it appears to use the system conhost ... the same thing that ps5.1 and cmd.exe use. you likely would need to use a shortcut to allow a custom color setup OR use the PSReadline stuff to define & load a custom color scheme. – Lee_Dailey Dec 14 '21 at 08:37
  • @Lee_Dailey Thanks a lot for the comment. If it's not possible, should I delete this question? – sgon00 Dec 14 '21 at 10:21
  • you are most welcome [*grin*] ... and please _do not_ delete the Question. it is a reasonable Question and others may have the same interest ... plus, i have been wrong many times - so you may get a usable Answer in a while. – Lee_Dailey Dec 14 '21 at 11:44

1 Answers1

1

The best you can do with pwsh.exe is right-clicking where you move the window and open Preferences. There you can change Font, Layout, Screen Colors, and Terminal colors. As for using the .json files like in Windows Terminal: does not seem possible (as from other comments)

nAZklX
  • 168
  • 11