Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
My Windows Terminal profile.json
{
"globals": {
"alwaysShowTabs": true,
"defaultProfile": "{f39b6ee5-a01c-41e3-a652-b95a5f3de9ad}",
"initialCols": 120,
"initialRows": 30,
"keybindings": [
{
"command": "closeTab",
"keys": [
"ctrl+w"
]
},
{
"command": "newTab",
"keys": [
"ctrl+t"
]
},
{
"command": "newTabProfile0",
"keys": [
"ctrl+shift+1"
]
},
{
"command": "newTabProfile1",
"keys": [
"ctrl+shift+2"
]
},
{
"command": "newTabProfile2",
"keys": [
"ctrl+shift+3"
]
},
{
"command": "newTabProfile3",
"keys": [
"ctrl+shift+4"
]
},
{
"command": "newTabProfile4",
"keys": [
"ctrl+shift+5"
]
},
{
"command": "newTabProfile5",
"keys": [
"ctrl+shift+6"
]
},
{
"command": "newTabProfile6",
"keys": [
"ctrl+shift+7"
]
},
{
"command": "newTabProfile7",
"keys": [
"ctrl+shift+8"
]
},
{
"command": "newTabProfile8",
"keys": [
"ctrl+shift+9"
]
},
{
"command": "nextTab",
"keys": [
"ctrl+tab"
]
},
{
"command": "prevTab",
"keys": [
"ctrl+shift+tab"
]
},
{
"command": "scrollDown",
"keys": [
"ctrl+shift+down"
]
},
{
"command": "scrollDownPage",
"keys": [
"ctrl+shift+pgdn"
]
},
{
"command": "scrollUp",
"keys": [
"ctrl+shift+up"
]
},
{
"command": "scrollUpPage",
"keys": [
"ctrl+shift+pgup"
]
},
{
"command": "switchToTab0",
"keys": [
"alt+1"
]
},
{
"command": "switchToTab1",
"keys": [
"alt+2"
]
},
{
"command": "switchToTab2",
"keys": [
"alt+3"
]
},
{
"command": "switchToTab3",
"keys": [
"alt+4"
]
},
{
"command": "switchToTab4",
"keys": [
"alt+5"
]
},
{
"command": "switchToTab5",
"keys": [
"alt+6"
]
},
{
"command": "switchToTab6",
"keys": [
"alt+7"
]
},
{
"command": "switchToTab7",
"keys": [
"alt+8"
]
},
{
"command": "switchToTab8",
"keys": [
"alt+9"
]
}
],
"requestedTheme": "light",
"showTabsInTitlebar": true,
"showTerminalTitleInTitlebar": true,
"wordDelimiters": " ./\\()\"'-:,.;<>~!@#$%^&*|+=[]{}~?\u2502"
},
"profiles": [
{
"acrylicOpacity": 0.75,
"closeOnExit": false,
"colorScheme": "Campbell",
"commandline": "cmd.exe /k \"C:\\Users\\CharlieInc\\Desktop\\Prompts\\BuildEnv\\vcpkg-env.bat\"",
"cursorColor": "#FFFFFF",
"cursorShape": "bar",
"fontFace": "Consolas",
"fontSize": 12,
"guid": "{f39b6ee5-a01c-41e3-a652-b95a5f3de9ad}",
"historySize": 9001,
"icon": "ms-appdata:///roaming/vs-32.png",
"name": "VS2019 VCPKG \ud83d\udc96",
"padding": "0, 0, 0, 0",
"snapOnInput": true,
"startingDirectory": "E:\\vcpkg",
"useAcrylic": true
},
{
"acrylicOpacity": 0.75,
"closeOnExit": false,
"colorScheme": "Campbell",
"commandline": "\"C:\\Program Files\\PowerShell\\7-preview\\pwsh.exe\" -NoExit -Command \"$Host.UI.RawUI.WindowTitle=\\\"Windows Pwsh \ud83d\udc99 (7 Preview)\\\";Write-Host\"",
"cursorColor": "#FFFFFF",
"cursorShape": "bar",
"fontFace": "Consolas",
"fontSize": 12,
"guid": "{08a0be98-ff68-4e3a-a054-0fbd3969d3bb}",
"historySize": 9001,
"icon": "ms-appdata:///roaming/pwsh-32.png",
"name": "Windows Pwsh \ud83d\udc99 (7 Preview)",
"padding": "0, 0, 0, 0",
"snapOnInput": true,
"startingDirectory": "C:\\Users\\CharlieInc",
"useAcrylic": true
},
{
"acrylicOpacity": 0.75,
"closeOnExit": false,
"colorScheme": "Campbell",
"commandline": "\"C:\\Program Files\\PowerShell\\6\\pwsh.exe\" -NoLogo -NoExit -File \"C:\\Users\\CharlieInc\\Desktop\\Prompts\\BuildEnv\\vcpkg-pwsh.ps1\"",
"cursorColor": "#FFFFFF",
"cursorShape": "bar",
"fontFace": "Consolas",
"fontSize": 12,
"guid": "{e3400272-ebc0-4860-b9d4-db7e98aa231b}",
"historySize": 9001,
"icon": "ms-appdata:///roaming/vs-32.png",
"name": "VS2019 VCPKG \ud83d\udc96 (PWSH)",
"padding": "0, 0, 0, 0",
"snapOnInput": true,
"startingDirectory": "E:\\vcpkg",
"useAcrylic": true
},
{
"acrylicOpacity": 0.75,
"closeOnExit": false,
"colorScheme": "Campbell",
"commandline": "cmd.exe",
"cursorColor": "#FFFFFF",
"cursorShape": "bar",
"fontFace": "Consolas",
"fontSize": 12,
"guid": "{410aa365-68e4-4a68-83f5-6139ccb43b0a}",
"historySize": 9001,
"icon": "ms-appdata:///roaming/cmd-light.png",
"name": "Windows CMD",
"padding": "0, 0, 0, 0",
"snapOnInput": true,
"startingDirectory": "C:\\Users\\CharlieInc",
"useAcrylic": true
},
{
"acrylicOpacity": 0.75,
"closeOnExit": false,
"colorScheme": "Campbell",
"commandline": "wsl ~",
"cursorColor": "#FFFFFF",
"cursorShape": "bar",
"fontFace": "Consolas",
"fontSize": 12,
"guid": "{78e390db-1bff-4533-9d7c-20f53d8bafa1}",
"historySize": 9001,
"icon": "ms-appdata:///roaming/ubuntu-32.png",
"name": "Windows Subsystem for Linux",
"padding": "0, 0, 0, 0",
"snapOnInput": true,
"useAcrylic": true
}
],
"schemes": [
{
"background": "#0C0C0C",
"black": "#0C0C0C",
"blue": "#0037DA",
"brightBlack": "#767676",
"brightBlue": "#3B78FF",
"brightCyan": "#61D6D6",
"brightGreen": "#16C60C",
"brightPurple": "#B4009E",
"brightRed": "#E74856",
"brightWhite": "#F2F2F2",
"brightYellow": "#F9F1A5",
"cyan": "#3A96DD",
"foreground": "#F2F2F2",
"green": "#13A10E",
"name": "Campbell",
"purple": "#881798",
"red": "#C50F1F",
"white": "#CCCCCC",
"yellow": "#C19C00"
},
{
"background": "#073642",
"black": "#073642",
"blue": "#268BD2",
"brightBlack": "#002B36",
"brightBlue": "#839496",
"brightCyan": "#93A1A1",
"brightGreen": "#586E75",
"brightPurple": "#6C71C4",
"brightRed": "#CB4B16",
"brightWhite": "#FDF6E3",
"brightYellow": "#657B83",
"cyan": "#2AA198",
"foreground": "#FDF6E3",
"green": "#859900",
"name": "Solarized Dark",
"purple": "#D33682",
"red": "#D30102",
"white": "#EEE8D5",
"yellow": "#B58900"
},
{
"background": "#FDF6E3",
"black": "#073642",
"blue": "#268BD2",
"brightBlack": "#002B36",
"brightBlue": "#839496",
"brightCyan": "#93A1A1",
"brightGreen": "#586E75",
"brightPurple": "#6C71C4",
"brightRed": "#CB4B16",
"brightWhite": "#FDF6E3",
"brightYellow": "#657B83",
"cyan": "#2AA198",
"foreground": "#073642",
"green": "#859900",
"name": "Solarized Light",
"purple": "#D33682",
"red": "#D30102",
"white": "#EEE8D5",
"yellow": "#B58900"
}
]
}
@fcharlie

This comment has been minimized.

Copy link
Owner Author

commented May 30, 2019

屏幕截图(4)

@fcharlie

This comment has been minimized.

Copy link
Owner Author

commented Jun 9, 2019

@enrickgsilva I do not quite understand you. Do you mean to open Visual Studio Code (Visual Studio) in Windows Terminal or?

@fcharlie

This comment has been minimized.

Copy link
Owner Author

commented Jun 9, 2019

@enrickgsilva You should add VSCode to the environment variable, different shell methods are different (cmd, pwsh)

@fcharlie

This comment has been minimized.

Copy link
Owner Author

commented Jun 9, 2019

Mybe Visual Studio Code Location: C:\Users\$YOUR-USERNAME\AppData\Local\Programs\Microsoft VS Code\bin or C:\Program Files\Microsoft VS Code\bin

@fcharlie

This comment has been minimized.

Copy link
Owner Author

commented Jun 9, 2019

@enrickgsilva Yes. Open Windows Terminal. type (open spec folder): code . or type(open some file): code hello.txt

@fcharlie

This comment has been minimized.

Copy link
Owner Author

commented Jun 9, 2019

@enrickgsilva In the configuration of Windows Termianl, there is currently no configuration for PATH, you only need to check whether the environment variable is valid in cmd/powershell.

@fcharlie

This comment has been minimized.

Copy link
Owner Author

commented Jun 9, 2019

@enrickgsilva That's just the bat (similar to the cat command) output code that supports highlighting. https://github.com/sharkdp/bat

@enrickgsilva

This comment has been minimized.

Copy link

commented Jun 9, 2019

thanks for your help!

@durvs

This comment has been minimized.

Copy link

commented Jul 18, 2019

You may want to change C:/users/barto/AppData/Local/Packages/Microsoft.WindowsTerminal_8wekyb3d8bbwe/RoamingState/ to
ms-appdata:///roaming/ that resolve to the same folder
is more simple and dynamic

@yangshuairocks

This comment has been minimized.

Copy link

commented Jul 25, 2019

I added the following profile:

        {
            "acrylicOpacity" : 0.75,
            "closeOnExit" : true,
            "colorScheme" : "Campbell",
            "commandline": "cmd.exe /k \"C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Enterprise\\VC\\Auxiliary\\Build\\vcvars64.bat\"",
            "cursorColor" : "#FFFFFF",
            "cursorShape" : "bar",
            "fontFace" : "Unifont",
            "fontSize" : 24,
            "guid" : "{0caa0dad-35be-5f56-a8ff-afceeeaa6102}",
            "historySize" : 9001,
            "icon" : "ms-appx:///ProfileIcons/{0caa0dad-35be-5f56-a8ff-afceeeaa6102}.png",
            "name" : "VS Terminal",
            "padding" : "0, 0, 0, 0",
            "snapOnInput" : true,
            "startingDirectory" : "%USERPROFILE%",
            "useAcrylic" : true
        }

But I always got the following error when I open a tab for the new profile:

'C:\Program' is not recognized as an internal or external command,
operable program or batch file.

C:\Users\admin>

Any ideas?

@fcharlie

This comment has been minimized.

Copy link
Owner Author

commented Jul 25, 2019

I added the following profile:

        {
            "acrylicOpacity" : 0.75,
            "closeOnExit" : true,
            "colorScheme" : "Campbell",
            "commandline": "cmd.exe /k \"C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Enterprise\\VC\\Auxiliary\\Build\\vcvars64.bat\"",
            "cursorColor" : "#FFFFFF",
            "cursorShape" : "bar",
            "fontFace" : "Unifont",
            "fontSize" : 24,
            "guid" : "{0caa0dad-35be-5f56-a8ff-afceeeaa6102}",
            "historySize" : 9001,
            "icon" : "ms-appx:///ProfileIcons/{0caa0dad-35be-5f56-a8ff-afceeeaa6102}.png",
            "name" : "VS Terminal",
            "padding" : "0, 0, 0, 0",
            "snapOnInput" : true,
            "startingDirectory" : "%USERPROFILE%",
            "useAcrylic" : true
        }

But I always got the following error when I open a tab for the new profile:

'C:\Program' is not recognized as an internal or external command,
operable program or batch file.

C:\Users\admin>

Any ideas?

This is a bug. Windows Termianl has fixed this issue, see microsoft/terminal#1815 So you can wait for the next preview or build your own Windows Terminal from source.

Issues: microsoft/terminal#1090

@yangshuairocks

This comment has been minimized.

Copy link

commented Jul 25, 2019

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.