0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

Windows Terminal入門

Posted at

Windows Terminalをインストールする。

Preview版もあるのでお好きなほうを選択してください。


Oh My Posh をインストールする

winget, scoopなどでインストールできる。

今回はwinget実行していきます。

Installation wingetから

winget install JanDeDobbeleer.OhMyPosh -s winget

を実行します。
※上記の公式ページからコマンドは確認してください。

image.png

実行すると上記のようにインストールが完了します。

  • $profile を何かしらのエディタなどで開く
// vscode
code $profile

// メモ帳
notepad $profile

Fontをインストール・設定をする

・Font をインストールする

oh-my-posh font install

お好きなフォントをインストールしてください。
特にない方は、Meslo をおすすめします。

  • fontを変更する
  1. 設定 > Windows PowerShell > (追加の設定)外観 > フォントフェイス
    からインストールしたフォントに変更してください。
  2. Meslo をインストールしたかたは MesloLGM Nerd Font を選択してください。
  3. 保存を押して終了してください。

テーマをインストール・設定をする

  • ここからお好きなテーマを選択して、jsonファイルをダウンロードしてください。

$profile を実行してファイルパスを確認して、ディレクトリ内にダウンロードしたファイルを配置します。

  • $profile を何かしらのエディタなどで開く
// vscode
code $profile

// メモ帳
notepad $profile

{jsonのファイルパス} の箇所にjsonファイルのパスを入力して保存します。

oh-my-posh init pwsh --config "{jsonのファイルパス}" | Invoke-Expression

Windows Terminalを再起動してください。
インストールしたテーマが反映されていれば成功です!

  • 参考:

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?