カテゴリー
Develop

PowerShellのカラーを変更する

2019-02-27_044954.png

Powershellで出力文字が全然見えずバグなのかと思っていたのだが、コピペすると文字は取得できるので設定のだろうとぐぐってみたところ、同じ症状の人を発見。「PowerShell の配色を変えるには?

ココらへんから、Powershellの色設定の変更方法を調べて、ConEmu – Handy Windows Terminalとか、neilpa/cmd-colors-solarized: Solarized color settings for Windows command promptとか見つけたんだけど、純正のIntroducing the Windows Console Colortool – Windows Command Line Tools For Developersを発見したので、こちらを使ってみた。

使い方は簡単で、Releases · Microsoft/consoleから最新版をDLして解凍。Powershellで解凍先フォルダに移動して、以下のコマンドを

colortool campbell
# campbellはcolor Scheme名

定義されているカラースキームは以下のような感じ。とりあえず、”campbell-legacy”に設定して、見えなかったものが見えるようになった。

  • campbell : The new default color scheme for Console
  • campbell-legacy : The first iteration of the campbell scheme
  • cmd-legacy : The legacy defaults of the Windows Console
  • OneHalfDark : A dark vim-airline theme by Son A. Pham
  • OneHalfLight : A light vim-airline theme by Son A. Pham
  • solarized_dark : The dark version of a popular color scheme by Ethan Schoonover
  • solarized_light : The light version of a popular color scheme by Ethan Schoonover
  • deuteranopia : A color scheme targeted towards making red and green clearer to users with red green colorblindness, and deuteranopia.

ということで、ないようにメモ。

「PowerShellのカラーを変更する」への1件の返信

コメントを残す

メールアドレスが公開されることはありません。 が付いている欄は必須項目です