1
0

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 3 years have passed since last update.

windoes terminalの使用

Posted at

◆Windows Terminalの使用

今までGit bashを使っていましたが、windows公式のターミナルである、Windows Terminalに移管しました。
備忘録として記録します。

◆Windows Terminalのインストール

Microsoft Storeでインストール。

◆起動

以下の画面が開きます。
初期設定ではPower Shellの画面が開きます。
今回はUbuntuを使用したいので、環境設定を変更します。

image.png

◆Ubuntuのインストール

Microsoft StoreでUbnutuをインストールします。

◆Terminalの確認

TerminalでUbnutuが使えることを確認しました。

image.png

image.png

◆デフォルト表示をubuntuに変える

以下の記事を参考にしました。
https://dk521123.hatenablog.com/entry/2020/12/10/094125

  1. Windows Terminalを起動し、タブの横にある「逆三角(プラスじゃない方)」を選択し
     [設定]を押下する
     => 「settings.json」が開く

※ 念のため、「settings.json」を別名で保存し、バックアップを取っておく

%LocalAppData%\Packages\Microsoft.WindowsTerminalPreview_8wekyb3d8bbwe\LocalState
  1. 「settings.json」からUbuntuのGUIDをコピーし、"defaultProfile"の値に張り付け、保存する
    "defaultProfile": "{<UbuntuのGUID>}", <<= b) ここに張り付ける

            {
                "guid": "{<UbuntuのGUID>}", <<= a) ここをコピー
                "hidden": false,
                "name": "Ubuntu",
                "source": "Windows.Terminal.Wsl"
            },

◆設定完了

デフォルト表示がUbuntuに変わりました。

1
0
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
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?