Windows Terminal 在此处打开终端不会继续为后续选项卡工作

相关问题

文件目录

—— Open in Windows Terminal
    | Install.bat
    | Uninstall.bat
    | settings.json
    | wt_64.ico

图标下载

wt_64.ico

安装脚本

reg add "HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionShell ExtensionsBlocked" /v {9F156763-7844-4DC4-B2B1-901F640F5155} /d WindowsTerminal /f
robocopy ./ %LOCALAPPDATA%	erminal wt_64.ico /E /IS /IT
reg add "HKCUSoftwareClassesDirectoryshellWindows Terminal Here" /v Icon /d %LOCALAPPDATA%	erminalwt_64.ico /f
reg add "HKCUSoftwareClassesDirectoryshellWindows Terminal Herecommand" /d ""%LOCALAPPDATA%MicrosoftWindowsAppswt.exe"" /f
reg add "HKCUSoftwareClassesDirectoryBackgroundshellWindows Terminal Here" /v Icon /d %LOCALAPPDATA%	erminalwt_64.ico /f
reg add "HKCUSoftwareClassesDirectoryBackgroundshellWindows Terminal Herecommand" /d ""%LOCALAPPDATA%MicrosoftWindowsAppswt.exe"" /f
reg add "HKCUSoftwareClassesLibraryFolderBackgroundshellWindows Terminal Here" /v Icon /d %LOCALAPPDATA%	erminalwt_64.ico /f
reg add "HKCUSoftwareClassesLibraryFolderBackgroundshellWindows Terminal Herecommand" /d ""%LOCALAPPDATA%MicrosoftWindowsAppswt.exe"" /f
echo "Context Menu For Windows Terminal is Configured Successfully! "
pause

卸载脚本

reg delete "HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionShell ExtensionsBlocked" /f
@RD /S /Q "%LOCALAPPDATA%	erminal"
reg delete "HKCUSoftwareClassesDirectoryshellWindows Terminal Here" /f
reg delete "HKCUSoftwareClassesDirectoryBackgroundshellWindows Terminal Here" /f
reg delete "HKCUSoftwareClassesLibraryFolderBackgroundshellWindows Terminal Here" /f
echo "Context Menu For Windows Terminal is Removed Successfully!"
pause

配置文件

// This file was initially generated by Windows Terminal 1.6.10571.0
// It should still be usable in newer versions, but newer versions might have additional
// settings, help text, or changes that you will not see unless you clear this file
// and let us generate a new one for you.

// 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": "{0caa0dad-35be-5f56-a8ff-afceeeaa6101}",

    // You can add more global application settings here.
    // To learn more about global settings, visit https://aka.ms/terminal-global-settings

    // If enabled, selections are automatically copied to your clipboard.
    "copyOnSelect": true,

    // If enabled, formatted data is also copied to your clipboard
    "copyFormatting": true,

    // 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,
    //   and can be invoked from the commandline with `wt.exe -p xxx`
    // To learn more about profiles, visit https://aka.ms/terminal-profile-settings
    "profiles":
    {
      "defaults": {
        // Put settings here that you want to apply to all profiles.
        "startingDirectory": "."
      },
      "list": [
        {
          "commandline": "powershell.exe",
          "guid": "{61c54bbd-c2c6-5271-96e7-009a87ff44bf}",
          "hidden": false,
          "name": "PowerShell"
        },
        {
          "acrylicOpacity": 0.8,
          "commandline": "cmd.exe",
          "fontFace": "Fira Code",
          "fontSize": 11,
          "guid": "{0caa0dad-35be-5f56-a8ff-afceeeaa6101}",
          "hidden": false,
          "name": "Terminal"
        },
        {
          "guid": "{b453ae62-4e3d-5e58-b989-0a998ec441b8}",
          "hidden": true,
          "name": "Azure Terminal",
          "source": "Windows.Terminal.Azure"
        },
        {
          "acrylicOpacity": 0.8,
          "closeOnExit": "graceful",
          "commandline": "D:\Program Files\Git\bin\bash.exe -i -l",
          "fontFace": "Fira Code",
          "fontSize": 11,
          "guid": "{1c4de342-38b7-51cf-b940-2309a097f589}",
          "historySize": 9001,
          "icon": "D:\Program Files\Git\mingw64\share\git\git-for-windows.ico",
          "name": "Git Terminal"
        }
      ]
    },

    // Add custom color schemes to this array.
    // To learn more about color schemes, visit https://aka.ms/terminal-color-schemes
    "schemes": [],

    // Add custom actions and keybindings to this array.
    // To unbind a key combination from your defaults.json, set the command to "unbound".
    // To learn more about actions and keybindings, visit https://aka.ms/terminal-keybindings
    "actions":
    [
        // Copy and paste are bound to Ctrl+Shift+C and Ctrl+Shift+V in your defaults.json.
        // These two lines additionally bind them to Ctrl+C and Ctrl+V.
        // To learn more about selection, visit https://aka.ms/terminal-selection
        { "command": {"action": "copy", "singleLine": false }, "keys": "ctrl+c" },
        { "command": "paste", "keys": "ctrl+v" },

        // Press Ctrl+Shift+F to open the search box
        { "command": "find", "keys": "ctrl+shift+f" },

        // Press Alt+Shift+D to open a new pane.
        // - "split": "auto" makes this pane open in the direction that provides the most surface area.
        // - "splitMode": "duplicate" makes the new pane use the focused pane's profile.
        // To learn more about panes, visit https://aka.ms/terminal-panes
        { "command": { "action": "splitPane", "split": "auto", "splitMode": "duplicate" }, "keys": "alt+shift+d" }
    ]
}
原文地址:https://www.cnblogs.com/Run2948/p/Open_In_Windows_Terminal_Does_Not_Continue_To_Work_For_Subsequent_Tabs.html