Why so many duplicate shell tab #13004

Closed
opened 2026-01-31 03:31:08 +00:00 by claunia · 5 comments
Owner

Originally created by @i-curve on GitHub (Mar 12, 2021).

Description

like this:
image

And I can't delete the superfluous.

image
When I try to delete it in "setting.json", The corresponding information will be added automatically

Proposed technical implementation details (optional)

Because it looks so ugly, I'd like to delete the superfluous

Originally created by @i-curve on GitHub (Mar 12, 2021). <!-- 🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨 # Description of the new feature/enhancement <!-- A clear and concise description of what the problem is that the new feature would solve. Describe why and how a user would use this new functionality (if applicable). --> ## Description like this: ![image](https://user-images.githubusercontent.com/40533808/110974841-f21aa700-8399-11eb-8ee5-a52565dbbeae.png) And I can't delete the superfluous. ![image](https://user-images.githubusercontent.com/40533808/110973955-e7abdd80-8398-11eb-9be8-a5aa7ce4838b.png) When I try to delete it in "setting.json", The corresponding information will be added automatically # Proposed technical implementation details (optional) <!-- A clear and concise description of what you want to happen. --> Because it looks so ugly, I'd like to delete the superfluous
claunia added the Issue-FeatureNeeds-TriageNeeds-Tag-FixNeeds-Attention labels 2026-01-31 03:31:09 +00:00
Author
Owner

@DHowett commented on GitHub (Mar 12, 2021):

Hm. Can you share your settings.json file? Thanks.

@DHowett commented on GitHub (Mar 12, 2021): Hm. Can you share your `settings.json` file? Thanks.
Author
Owner

@i-curve commented on GitHub (Mar 12, 2021):

setting.json file:

{
    "$schema": "https://aka.ms/terminal-profiles-schema",
    // 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"
        }
    ],
    "alwaysOnTop": false,
    "alwaysShowTabs": true,
    "copyFormatting": "none",
    "copyOnSelect": false,
    "defaultProfile": "{e72abb56-ab17-50cf-9780-9bbd9b2b850c}",
    "experimental.rendering.forceFullRepaint": true,
    "experimental.rendering.software": true,
    "initialCols": 100,
    "initialRows": 25,
    "profiles": 
    {
        "defaults": 
        {
            "acrylicOpacity": 0.75,
            "backgroundImage": null,
            "closeOnExit": "graceful",
            "colorScheme": "Flat UI Palette v1 Modified",
            "commandline": "powershell.exe",
            "cursorColor": "#657B83",
            "cursorShape": "bar",
            "fontFace": "Sarasa Fixed J",
            "fontSize": 12,
            "historySize": 9001,
            "icon": "C:\\Users\\curve\\Pictures\\Windows\u805a\u7126\u58c1\u7eb8\\RE3qWoy_1920x1080.jpg",
            "name": "PowerShell",
            "padding": "10, 10, 10, 10",
            "snapOnInput": true,
            "startingDirectory": "F:\\desktop",
            "suppressApplicationTitle": true,
            "useAcrylic": true
        },
        "list": 
        [
            {
                "guid": "{e72abb56-ab17-50cf-9780-9bbd9b2b850c}",
                "hidden": false,
                "name": "PS1"
            },
            {
                "guid": "{b453ae62-4e3d-5e58-b989-0a998ec441b8}",
                "hidden": false,
                "name": "Azure",
                "source": "Windows.Terminal.Azure"
            },
            {
                "guid": "{46ca431a-3a87-5fb3-83cd-11ececc031d2}",
                "hidden": false,
                "name": "Wsl",
                "source": "Windows.Terminal.Wsl"
            },
            {
                "guid": "{2c4de342-38b7-51cf-b940-2309a097f518}",
                "hidden": false,
                "name": "PS2",
                "source": "Windows.Terminal.Wsl"
            }
        ]
    }
}
@i-curve commented on GitHub (Mar 12, 2021): setting.json file: ```json { "$schema": "https://aka.ms/terminal-profiles-schema", // 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" } ], "alwaysOnTop": false, "alwaysShowTabs": true, "copyFormatting": "none", "copyOnSelect": false, "defaultProfile": "{e72abb56-ab17-50cf-9780-9bbd9b2b850c}", "experimental.rendering.forceFullRepaint": true, "experimental.rendering.software": true, "initialCols": 100, "initialRows": 25, "profiles": { "defaults": { "acrylicOpacity": 0.75, "backgroundImage": null, "closeOnExit": "graceful", "colorScheme": "Flat UI Palette v1 Modified", "commandline": "powershell.exe", "cursorColor": "#657B83", "cursorShape": "bar", "fontFace": "Sarasa Fixed J", "fontSize": 12, "historySize": 9001, "icon": "C:\\Users\\curve\\Pictures\\Windows\u805a\u7126\u58c1\u7eb8\\RE3qWoy_1920x1080.jpg", "name": "PowerShell", "padding": "10, 10, 10, 10", "snapOnInput": true, "startingDirectory": "F:\\desktop", "suppressApplicationTitle": true, "useAcrylic": true }, "list": [ { "guid": "{e72abb56-ab17-50cf-9780-9bbd9b2b850c}", "hidden": false, "name": "PS1" }, { "guid": "{b453ae62-4e3d-5e58-b989-0a998ec441b8}", "hidden": false, "name": "Azure", "source": "Windows.Terminal.Azure" }, { "guid": "{46ca431a-3a87-5fb3-83cd-11ececc031d2}", "hidden": false, "name": "Wsl", "source": "Windows.Terminal.Wsl" }, { "guid": "{2c4de342-38b7-51cf-b940-2309a097f518}", "hidden": false, "name": "PS2", "source": "Windows.Terminal.Wsl" } ] } } ```
Author
Owner

@DHowett commented on GitHub (Mar 12, 2021):

You have "name: powershell" in your defaults section. You have set the default name for every profile to be "PowerShell"... This means that every profile will be named "PowerShell".

@DHowett commented on GitHub (Mar 12, 2021): You have "name: powershell" in your defaults section. You have set the _default name for every profile_ to be "PowerShell"... This means that every profile will be named "PowerShell".
Author
Owner

@jdebp commented on GitHub (Mar 13, 2021):

That does not explain why there are 4 profiles in the settings and 6 entries in the menu, though.

@jdebp commented on GitHub (Mar 13, 2021): That does not explain why there are 4 profiles in the settings and 6 entries in the menu, though.
Author
Owner

@DHowett commented on GitHub (Mar 13, 2021):

Kind-of. There’s another settings file that produces profiles that are getting their names overridden. It’s not a model that has worked well for us (for discoverability reasons,) but it does ensure that users always have at least Command Prompt and Windows PowerShell.

ideally, we would replace those with dynamic profile generators and allow folks to delete them.

right now, the best solution (and the one most liable to work) is to hide them with hidden: true

@DHowett commented on GitHub (Mar 13, 2021): Kind-of. There’s another settings file that produces profiles that are getting their names overridden. It’s not a model that has worked well for us (for discoverability reasons,) but it does ensure that users always have at least Command Prompt and Windows PowerShell. ideally, we would replace those with dynamic profile generators _and_ allow folks to delete them. right now, the best solution (and the one most liable to work) is to _hide_ them with `hidden: true`
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#13004