Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
My Windows Terminal profile.json
{
"$schema": "https://aka.ms/terminal-profiles-schema",
"alwaysShowTabs": true,
"defaultProfile": "{0caa0dad-35be-5f56-a8ff-afceeeaa6101}",
"initialCols": 120,
"initialRows": 30,
"requestedTheme": "light",
"showTabsInTitlebar": true,
"showTerminalTitleInTitlebar": true,
"wordDelimiters": " ./\\()\"'-:,.;<>~!@#$%^&*|+=[]{}~?\u2502",
"profiles": [
{
"guid": "{0caa0dad-35be-5f56-a8ff-afceeeaa6101}",
"commandline": "cmd.exe",
"fontFace": "Consolas",
"colorScheme": "One Half Dark",
"fontSize": 12,
"icon": "ms-appdata:///roaming/terminal.ico",
"name": "Windows 🙃 Terminal",
"startingDirectory": "~",
"closeOnExit": "always"
},
{
"colorScheme": "One Half Dark",
"commandline": "%comspec% /k \"C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\VC\\Auxiliary\\Build\\vcvars64.bat\"",
"fontFace": "Console",
"fontSize": 12,
"guid": "{f39b6ee5-a01c-41e3-a652-b95a5f3de9ad}",
"icon": "ms-appdata:///roaming/vs-32.png",
"name": "VS2019 \ud83d\udc96",
"startingDirectory": "~",
"closeOnExit": "always"
},
{
"commandline": "\"C:\\Program Files\\PowerShell\\7-preview\\pwsh.exe\" -NoExit -Command \"$Host.UI.RawUI.WindowTitle='Windows Pwsh \ud83d\udc99 (7 Preview)';Write-Host\"",
"guid": "{574e775e-4f2a-5b96-ac1e-a2962a402336}",
"name": "Windows Pwsh \ud83d\udc99 (7 Preview)",
"fontFace": "Console",
"fontSize": 12,
"colorScheme": "One Half Dark",
"startingDirectory": "~",
"closeOnExit": "always"
},
{
"guid": "{46ca431a-3a87-5fb3-83cd-11ececc031d2}",
"hidden": false,
"fontFace": "Console",
"fontSize": 12,
"colorScheme": "One Half Dark",
"name": "Kali Linux",
"source": "Windows.Terminal.Wsl",
"closeOnExit": "always"
},
{
"guid": "{61c54bbd-c2c6-5271-96e7-009a87ff44bf}",
"name": "Windows PowerShell",
"commandline": "powershell.exe",
"hidden": true
},
{
"guid": "{049b895c-b0b8-55de-bce3-27d3220d7ab3}",
"hidden": false,
"name": "PowerShell Core",
"colorScheme": "One Half Dark",
"source": "Windows.Terminal.PowershellCore",
"closeOnExit": "always"
},
{
"commandline": "\"C:/Program Files/Git/bin/bash.exe\" -i -l",
"fontFace": "Console",
"fontSize": 12,
"colorScheme": "One Half Dark",
"guid": "{4ae84548-75b3-4082-af6e-90a22a79cc0b}",
"icon": "ms-appdata:///roaming/git-for-windows.ico",
"name": "Git for Windows",
"startingDirectory": "~",
"closeOnExit": "always"
},
{
"guid": "{b453ae62-4e3d-5e58-b989-0a998ec441b8}",
"hidden": false,
"name": "Azure Cloud Shell",
"source": "Windows.Terminal.Azure",
"closeOnExit": "always"
}
],
"schemes": []
}
@fcharlie

This comment has been minimized.

Copy link
Owner Author

fcharlie commented May 30, 2019

屏幕截图(4)

@fcharlie

This comment has been minimized.

Copy link
Owner Author

fcharlie 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

fcharlie 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

fcharlie 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

fcharlie 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

fcharlie 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

fcharlie 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

enrickgsilva commented Jun 9, 2019

thanks for your help!

@durvs

This comment has been minimized.

Copy link

durvs 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

yangshuairocks 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

fcharlie 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

yangshuairocks 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.