差分
このページの2つのバージョン間の差分を表示します。
| 両方とも前のリビジョン 前のリビジョン 次のリビジョン | 前のリビジョン | ||
| windows:windows_terminal [2020/05/29 02:28] – [参考文献] ともやん | windows:windows_terminal [2023/09/20 18:15] (現在) – [settings.json の設定例] ともやん | ||
|---|---|---|---|
| 行 1: | 行 1: | ||
| - | < | ||
| - | < | ||
| - | #result pre, #mincode pre { | ||
| - | overflow: hidden; | ||
| - | font-size: 10px; | ||
| - | } | ||
| - | # | ||
| - | height: 250px; | ||
| - | overflow: scroll; | ||
| - | overflow-x: hidden; | ||
| - | font-size: 10px; | ||
| - | } | ||
| - | #mintbl table { | ||
| - | font-size: 12px; | ||
| - | } | ||
| - | #mintbl td pre { | ||
| - | margin: 0; | ||
| - | } | ||
| - | .dokuwiki .plugin_wrap table { | ||
| - | width: auto; | ||
| - | } | ||
| - | #logo { | ||
| - | background-color: | ||
| - | padding: 10px; | ||
| - | width: fit-content; | ||
| - | } | ||
| - | #logo p { | ||
| - | margin: 0; | ||
| - | } | ||
| - | </ | ||
| - | </ | ||
| ====== Windows Terminal ====== | ====== Windows Terminal ====== | ||
| Windows Terminal は Windows 10 向けの新しいコマンドプロンプトを提供する。Linux ターミナルのようにマルチタブなどの機能も提供されている。\\ | Windows Terminal は Windows 10 向けの新しいコマンドプロンプトを提供する。Linux ターミナルのようにマルチタブなどの機能も提供されている。\\ | ||
| 行 38: | 行 7: | ||
| ソースコード: | ソースコード: | ||
| \\ | \\ | ||
| - | {{:windows: | + | {{windows: |
| ===== システム必要条件 ===== | ===== システム必要条件 ===== | ||
| 行 52: | 行 21: | ||
| </ | </ | ||
| OS バージョンを更新しないとインストールできないようである。\\ | OS バージョンを更新しないとインストールできないようである。\\ | ||
| - | {{:windows: | + | {{windows: |
| ===== インストール ===== | ===== インストール ===== | ||
| 行 94: | 行 63: | ||
| ===== 設定 ===== | ===== 設定 ===== | ||
| Windows Terminal の設定はタブのドロップダウンから **Settings** を選択して **json ファイル**を編集する。\\ | Windows Terminal の設定はタブのドロップダウンから **Settings** を選択して **json ファイル**を編集する。\\ | ||
| - | {{:windows: | + | <WRAP prewrap 100%> |
| + | ファイルパス: | ||
| + | </ | ||
| + | </ | ||
| + | {{windows: | ||
| ==== settings.json のセクション構成 ==== | ==== settings.json のセクション構成 ==== | ||
| 行 129: | 行 102: | ||
| " | " | ||
| " | " | ||
| + | | ||
| // You can add more global application settings here. | // You can add more global application settings here. | ||
| // To learn more about global settings, visit https:// | // To learn more about global settings, visit https:// | ||
| + | | ||
| // If enabled, selections are automatically copied to your clipboard. | // If enabled, selections are automatically copied to your clipboard. | ||
| " | " | ||
| + | | ||
| // If enabled, formatted data is also copied to your clipboard | // If enabled, formatted data is also copied to your clipboard | ||
| " | " | ||
| + | | ||
| // A profile specifies a command to execute paired with information about how it should look and feel. | // A profile specifies a command to execute paired with information about how it should look and feel. | ||
| // Each one of them will appear in the 'New Tab' dropdown, | // Each one of them will appear in the 'New Tab' dropdown, | ||
| 行 148: | 行 121: | ||
| { | { | ||
| // Put settings here that you want to apply to all profiles | // Put settings here that you want to apply to all profiles | ||
| - | " | ||
| - | " | ||
| " | " | ||
| " | " | ||
| " | " | ||
| - | " | + | " |
| + | " | ||
| + | { | ||
| + | " | ||
| + | " | ||
| + | }, | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | | ||
| //" | //" | ||
| //" | //" | ||
| 行 164: | 行 145: | ||
| " | " | ||
| [ | [ | ||
| + | { | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | //" | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | }, | ||
| { | { | ||
| // Make changes here to the powershell.exe profile | // Make changes here to the powershell.exe profile | ||
| " | " | ||
| + | " | ||
| " | " | ||
| " | " | ||
| - | "hidden": | + | "startingDirectory" : " |
| }, | }, | ||
| { | { | ||
| // Make changes here to the cmd.exe profile | // Make changes here to the cmd.exe profile | ||
| " | " | ||
| + | " | ||
| " | " | ||
| " | " | ||
| - | | + | " |
| - | | + | "startingDirectory" : "%USERPROFILE%" |
| - | }, | + | |
| - | { | + | |
| - | "guid": " | + | |
| - | " | + | |
| - | " | + | |
| - | " | + | |
| - | " | + | |
| }, | }, | ||
| { | { | ||
| 行 191: | 行 177: | ||
| " | " | ||
| " | " | ||
| - | }, | ||
| - | { | ||
| - | " | ||
| - | " | ||
| - | " | ||
| - | " | ||
| }, | }, | ||
| { | { | ||
| 行 209: | 行 189: | ||
| " | " | ||
| " | " | ||
| + | }, | ||
| + | { | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| } | } | ||
| ] | ] | ||
| 行 215: | 行 201: | ||
| // Add custom color schemes to this array. | // Add custom color schemes to this array. | ||
| // To learn more about color schemes, visit https:// | // To learn more about color schemes, visit https:// | ||
| - | " | + | " |
| + | | ||
| + | { | ||
| + | " | ||
| + | |||
| + | " | ||
| + | " | ||
| + | |||
| + | " | ||
| + | " | ||
| + | |||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | }, | ||
| + | { | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | }, | ||
| + | { | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | }, | ||
| + | { | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | }, | ||
| + | { | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | }, | ||
| + | { | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | }, | ||
| + | { | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | }, | ||
| + | { | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | }, | ||
| + | { | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | }, | ||
| + | { | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | } | ||
| + | ], | ||
| + | " | ||
| + | [ | ||
| + | { | ||
| + | " | ||
| + | " | ||
| + | { | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | }, | ||
| + | " | ||
| + | { | ||
| + | " | ||
| + | " | ||
| + | } | ||
| + | }, | ||
| + | { | ||
| + | " | ||
| + | " | ||
| + | { | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | }, | ||
| + | " | ||
| + | { | ||
| + | " | ||
| + | " | ||
| + | } | ||
| + | }, | ||
| + | { | ||
| + | " | ||
| + | " | ||
| + | { | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | }, | ||
| + | " | ||
| + | { | ||
| + | " | ||
| + | " | ||
| + | } | ||
| + | } | ||
| + | | ||
| // Add custom keybindings to this array. | // Add custom keybindings to this array. | ||
| 行 241: | 行 507: | ||
| </ | </ | ||
| ※**backgroundImage** は 400 x 300px の png 画像を使用。\\ | ※**backgroundImage** は 400 x 300px の png 画像を使用。\\ | ||
| + | |||
| + | ==== WSL の レジストリ設定を一覧表示する ==== | ||
| + | **Get-ChildItem** コマンドレットでレジストリを調べる。\\ | ||
| + | <WRAP prewrap 100%> | ||
| + | <code powershell> | ||
| + | $ Get-ChildItem -Path HKCU: | ||
| + | </ | ||
| + | </ | ||
| + | <WRAP prewrap 100% #result> | ||
| + | <code powershell> | ||
| + | |||
| + | Hive: HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Lxss | ||
| + | |||
| + | Name | ||
| + | ---- | ||
| + | {874A2A70-6EAF-42C1-A6F6-1C2EA DistributionName | ||
| + | C2BFA52} | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | {CC54D096-DBCD-4D93-93A5-899AE DistributionName | ||
| + | 35559B4} | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | {E74B61AB-F675-4518-A0E3-BCEE9 DistributionName | ||
| + | C7F8E9C} | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | {F9260EF7-5866-4DAC-8E4F-86487 DistributionName | ||
| + | 1004DA4} | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | </ | ||
| + | </ | ||
| ==== MSYS2 MinGW 64-bit を追加する ==== | ==== MSYS2 MinGW 64-bit を追加する ==== | ||
| 行 359: | 行 678: | ||
| ===== トラブルシューティング ===== | ===== トラブルシューティング ===== | ||
| + | |||
| + | ==== 長時間実行プロセスを Ctrl + C で終了すると PowerShell が終了する ==== | ||
| + | <WRAP prewrap 100% #result> | ||
| + | <code powershell> | ||
| + | PowerShell 7.0.2 | ||
| + | Copyright (c) Microsoft Corporation. All rights reserved. | ||
| + | |||
| + | https:// | ||
| + | Type ' | ||
| + | |||
| + | PS C: | ||
| + | PS D:\wsl> xz .\fedora.tar | ||
| + | |||
| + | [プロセスはコード 3221225786 で終了しました] | ||
| + | </ | ||
| + | </ | ||
| + | 英語では以下のようにシェルが終了する。\\ | ||
| + | <WRAP prewrap 100% #result> | ||
| + | <code powershell> | ||
| + | [process exited with code 3221225786] | ||
| + | </ | ||
| + | </ | ||
| + | |||
| + | 設定 (settings.json) の **" | ||
| + | <WRAP prewrap 100% #result> | ||
| + | <code javascript settings.json> | ||
| + | " | ||
| + | [ | ||
| + | { | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | //" | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | } | ||
| + | ] | ||
| + | </ | ||
| + | </ | ||
| + | |||
| + | [[https:// | ||
| ==== バージョンアップ後にユーザー設定読み込みエラーが発生する ==== | ==== バージョンアップ後にユーザー設定読み込みエラーが発生する ==== | ||
| 行 374: | 行 736: | ||
| </ | </ | ||
| </ | </ | ||
| - | {{:windows: | + | {{windows: |
| 以下のような " | 以下のような " | ||