How can I launch powershell.exe with the “default” colours from the PowerShell shortcut?

前端 未结 9 1336
野趣味
野趣味 2020-12-13 06:56

I\'m attached to the nice blue colour of the PowerShell window when you launch it from one of the pre-installed shortcuts. However, if you manually launch powershell.exe, yo

相关标签:
9条回答
  • 2020-12-13 07:32

    The correct way to do this is with the Registry

    cd hkcu:/console
    $0 = '%systemroot%_system32_windowspowershell_v1.0_powershell.exe'
    ni $0 -f
    sp $0 ColorTable00 0x00562401
    sp $0 ColorTable07 0x00f0edee
    
    0 讨论(0)
  • 2020-12-13 07:35

    I found it very useful to use concfg tool and scoop to install colors and fonts for Powershell:

    1. Install scoop:

      iex (new-object net.webclient).downloadstring('https://get.scoop.sh')
      
    2. Install concfg:

      scoop install concfg
      
    3. Install Solarized theme:

      concfg import solarized
      

    That's it, thanks to the authors!

    0 讨论(0)
  • 2020-12-13 07:37

    This was my solution (setting the colors in a script that launches as system). May be more than you need (see my own answer):

    https://superuser.com/questions/891519/using-psexec-to-launch-powershell-session-as-system-with-specific-window-attribu

    0 讨论(0)
提交回复
热议问题