windows:windows_terminal

差分

このページの2つのバージョン間の差分を表示します。

この比較画面へのリンク

両方とも前のリビジョン 前のリビジョン
次のリビジョン
前のリビジョン
次のリビジョン両方とも次のリビジョン
windows:windows_terminal [2019/08/13 17:26] ともやんwindows:windows_terminal [2020/03/09 06:45] ともやん
行 1: 行 1:
-<ifauth !@loggedinusers><html> 
-<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script> 
-<script> 
-     (adsbygoogle = window.adsbygoogle || []).push({ 
-          google_ad_client: "ca-pub-0791334967460971", 
-          enable_page_level_ads: true 
-     }); 
-</script></html></ifauth> 
 <html> <html>
   <style>   <style>
-    #result pre { +    #setting pre {
-      height: 200px;+
       overflow: scroll;       overflow: scroll;
       overflow-x: hidden;       overflow-x: hidden;
 +      font-size: 12px;
 +    }
 +    #setting_long pre {
 +      height: 300px;
 +      overflow: scroll;
 +      overflow-x: hidden;
 +      font-size: 12px;
     }     }
   </style>   </style>
行 37: 行 35:
 Windows Terminal の設定はタブのドロップダウンから **Settings** を選択して **json ファイル**を編集する。\\ Windows Terminal の設定はタブのドロップダウンから **Settings** を選択して **json ファイル**を編集する。\\
 {{:windows:windows_terminal_settings.png?284|Windows Terminal Settings}}\\ {{:windows:windows_terminal_settings.png?284|Windows Terminal Settings}}\\
 +
 +==== 設定例 ====
 +<WRAP prewrap 100% #setting>
 +<file javascript profile.json>
 +// To view the default settings, hold "alt" while clicking on the "Settings" button.
 +// For documentation on these settings, see: https://aka.ms/terminal-documentation
 +
 +{
 +    "$schema": "https://aka.ms/terminal-profiles-schema",
 +
 +    "defaultProfile": "{574e775e-4f2a-5b96-ac1e-a2962a402336}",
 +
 +    "globals"
 +    {
 +        "initialCols" : 120,
 +        "initialRows" : 35
 +    },
 +    "profiles":
 +    {
 +        "defaults":
 +        {
 +            // Put settings here that you want to apply to all profiles
 +            "fontFace" : "HackGen",
 +            "fontSize" : 10,
 +            "backgroundImage": "C:\\Users\\tomoyan\\Pictures\\mg_chara.png",
 +            "backgroundImageStretchMode" : "none",
 +            "backgroundImageAlignment": "bottomRight",
 +            "backgroundImageOpacity": 0.5
 +            //"colorScheme": "Campbell"
 +            //"colorScheme": "Campbell Powershell"
 +            //"colorScheme": "Vintage"
 +            //"colorScheme": "One Half Dark"
 +            //"colorScheme": "One Half Light"
 +            //"colorScheme": "Solarized Dark"
 +            //"colorScheme": "Solarized Light"
 +        },
 +        "list":
 +        [
 +            {
 +                // Make changes here to the powershell.exe profile
 +                "guid": "{61c54bbd-c2c6-5271-96e7-009a87ff44bf}",
 +                "name": "Windows PowerShell",
 +                "commandline": "powershell.exe",
 +                "hidden": false
 +            },
 +            {
 +                // Make changes here to the cmd.exe profile
 +                "guid": "{0caa0dad-35be-5f56-a8ff-afceeeaa6101}",
 +                "name": "コマンドプロンプト",
 +                "commandline": "cmd.exe",
 +                "hidden": false,
 +                "colorScheme": "One Half Dark"
 +            },
 +            {
 +                "guid": "{574e775e-4f2a-5b96-ac1e-a2962a402336}",
 +                "hidden": false,
 +                "name": "PowerShell Core",
 +                "source": "Windows.Terminal.PowershellCore",
 +                "colorScheme": "Campbell"
 +            },
 +            {
 +                "guid": "{d3f31bee-5823-5ed8-8e04-f31ed54f2cd9}",
 +                "hidden": false,
 +                "name": "FedoraRemix",
 +                "source": "Windows.Terminal.Wsl"
 +            },
 +            {
 +                "guid": "{b453ae62-4e3d-5e58-b989-0a998ec441b8}",
 +                "hidden": false,
 +                "name": "Azure Cloud Shell",
 +                "source": "Windows.Terminal.Azure"
 +            }
 +        ]
 +    },
 +
 +    // Add custom color schemes to this array
 +    "schemes": [],
 +
 +    // Add any keybinding overrides to this array.
 +    // To unbind a default keybinding, set the command to "unbound"
 +    "keybindings": []
 +}
 +</file>
 +</WRAP>
 +※**backgroundImage** は 400 x 300px の png 画像を使用。\\
  
 ==== MSYS2 MinGW 64-bit を追加する ==== ==== MSYS2 MinGW 64-bit を追加する ====
行 48: 行 131:
 </code> </code>
 生成した **GUID** を使用して **profiles** を以下の様にすると **MSYS2 MinGW 64-bit** が上手く**タブ**になる。\\ 生成した **GUID** を使用して **profiles** を以下の様にすると **MSYS2 MinGW 64-bit** が上手く**タブ**になる。\\
 +<WRAP prewrap 100% #setting>
 <file javascript profile.json> <file javascript profile.json>
 { {
行 72: 行 156:
         },         },
 </file> </file>
 +</WRAP>
 {{:windows:windows_terminal_msys2.png?800|Windows Terminal MSYS2}}\\ {{:windows:windows_terminal_msys2.png?800|Windows Terminal MSYS2}}\\
  
行 79: 行 164:
 === 失敗例 === === 失敗例 ===
 生成した **GUID** を使用して **profiles** を以下の様に追加してみたが、**MSYS2 MinGW 64-bit** は起動できるものの**タブ**にはならなかった。(別窓になってしまう)\\ 生成した **GUID** を使用して **profiles** を以下の様に追加してみたが、**MSYS2 MinGW 64-bit** は起動できるものの**タブ**にはならなかった。(別窓になってしまう)\\
 +<WRAP prewrap 100% #setting>
 <file javascript profile.json> <file javascript profile.json>
 { {
行 103: 行 189:
         },         },
 </file> </file>
 +</WRAP>
  
-==== デフォルトで起動するターミナルを **PowerShell** から **コマンドプロンプト(cmd)** に変更する ====+==== デフォルトで起動するターミナルを **PowerShell** から **コマンドプロンプト(cmd)** に変更する場合 ====
 **defaultProfile** に **profiles** の **guid** を設定すると変更できる。\\ **defaultProfile** に **profiles** の **guid** を設定すると変更できる。\\
 +<WRAP prewrap 100% #setting>
 <code javascript> <code javascript>
 "profiles" : "profiles" :
行 125: 行 213:
 ],         ],        
 </code> </code>
 +</WRAP>
 +
 **defaultProfile** を **{61c54bbd-c2c6-5271-96e7-009a87ff44bf}**(Windows PowerShell) から **{0caa0dad-35be-5f56-a8ff-afceeeaa6101}**(cmd) に変更する。\\ **defaultProfile** を **{61c54bbd-c2c6-5271-96e7-009a87ff44bf}**(Windows PowerShell) から **{0caa0dad-35be-5f56-a8ff-afceeeaa6101}**(cmd) に変更する。\\
 +<WRAP prewrap 100% #setting>
 <file javascript profile.json> <file javascript profile.json>
 { {
行 144: 行 235:
             },             },
 </file> </file>
 +</WRAP>
  
 +===== 参考文献 =====
 +[[https://qiita.com/rubytomato@github/items/e88cab84f36e44797cf2|Windows Terminal (Preview) メモ - Qiita]]\\
 +[[https://qiita.com/tawara_/items/374f3ca0a386fab8b305|【文字幅 半角3:全角5 も追加】Ricty を神フォントだと崇める僕が、フリーライセンスのプログラミングフォント「白源」を作った話 - Qiita]]\\
  
  • windows/windows_terminal.txt
  • 最終更新: 2023/09/20 18:15
  • by ともやん