Skip to content

Instantly share code, notes, and snippets.

@fcharlie
Last active December 18, 2022 20:38
Show Gist options
  • Star 21 You must be signed in to star a gist
  • Fork 8 You must be signed in to fork a gist
  • Save fcharlie/7530d36175bc5249f1ae92be536238cd to your computer and use it in GitHub Desktop.
Save fcharlie/7530d36175bc5249f1ae92be536238cd to your computer and use it in GitHub Desktop.
My Windows Terminal profile.json
// This file was initially generated by Windows Terminal 0.11.1333.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": "{574e775e-4f2a-5b96-ac1e-a2962a402336}",
// 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": false,
// If enabled, formatted data is also copied to your clipboard
"copyFormatting": false,
"closeOnExit": "always",
"alwaysShowTabs": true,
"initialCols": 120,
"initialRows": 30,
"requestedTheme": "light",
"showTabsInTitlebar": true,
"showTerminalTitleInTitlebar": 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.
},
"list": [
{
"guid": "{574e775e-4f2a-5b96-ac1e-a2962a402336}",
"fontFace": "Console",
"fontSize": 12,
"colorScheme": "One Half Dark",
"hidden": false,
"name": "Windows Pwsh \ud83d\udc99",
"source": "Windows.Terminal.PowershellCore"
},
{
"guid": "{46ca431a-3a87-5fb3-83cd-11ececc031d2}",
"fontFace": "Console",
"fontSize": 12,
"colorScheme": "One Half Dark",
"hidden": false,
"name": "Kali Linux",
"source": "Windows.Terminal.Wsl",
"closeOnExit": "always"
},
{
"commandline": "%comspec% /k \"C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\VC\\Auxiliary\\Build\\vcvars64.bat\"",
"fontFace": "Console",
"fontSize": 12,
"colorScheme": "One Half Dark",
"guid": "{f39b6ee5-a01c-41e3-a652-b95a5f3de9ad}",
"icon": "ms-appdata:///roaming/vs-32.png",
"name": "VS2019 \ud83d\udc96",
"startingDirectory": "~"
},
{
// Make changes here to the cmd.exe profile.
"guid": "{0caa0dad-35be-5f56-a8ff-afceeeaa6101}",
"fontFace": "Console",
"fontSize": 12,
"colorScheme": "One Half Dark",
"name": "Windows CMD",
"commandline": "cmd.exe",
"hidden": false
},
{
"guid": "{a3a2e83a-884a-5379-baa8-16f193a13b21}",
"fontFace": "Console",
"fontSize": 12,
"colorScheme": "One Half Dark",
"hidden": false,
"name": "PowerShell 7 Preview",
"source": "Windows.Terminal.PowershellCore"
},
{
"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"
},
{
// Make changes here to the powershell.exe profile.
"guid": "{61c54bbd-c2c6-5271-96e7-009a87ff44bf}",
"fontFace": "Console",
"fontSize": 12,
"colorScheme": "One Half Dark",
"name": "Windows PowerShell",
"commandline": "powershell.exe",
"hidden": true
}
]
},
// Add custom color schemes to this array.
// To learn more about color schemes, visit https://aka.ms/terminal-color-schemes
"schemes": [],
// Add custom keybindings to this array.
// To unbind a key combination from your defaults.json, set the command to "unbound".
// To learn more about keybindings, visit https://aka.ms/terminal-keybindings
"keybindings": [
// 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"
}
]
}
@fcharlie
Copy link
Author

屏幕截图(4)

@fcharlie
Copy link
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
Copy link
Author

fcharlie commented Jun 9, 2019

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

@fcharlie
Copy link
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
Copy link
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
Copy link
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
Copy link
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
Copy link

thanks for your help!

@durvs
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

@0x7FFFFFFFFFFFFFFF
Copy link

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
Copy link
Author

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

@0x7FFFFFFFFFFFFFFF
Copy link

Thank you!

@fcharlie
Copy link
Author

{
  "name": "Chester",
  "black": "#080200",
  "red": "#fa5e5b",
  "green": "#16c98d",
  "yellow": "#ffc83f",
  "blue": "#288ad6",
  "purple": "#d34590",
  "cyan": "#28ddde",
  "white": "#e7e7e7",
  "brightBlack": "#6f6b68",
  "brightRed": "#fa5e5b",
  "brightGreen": "#16c98d",
  "brightYellow": "#feef6d",
  "brightBlue": "#278ad6",
  "brightPurple": "#d34590",
  "brightCyan": "#27dede",
  "brightWhite": "#ffffff",
  "background": "#2c3643",
  "foreground": "#ffffff"
}

@fcharlie
Copy link
Author

multiLinePasteWarning largePasteWarning

@fcharlie
Copy link
Author

fcharlie commented Sep 10, 2020

Icons:

kali
kali-2
linux
ubuntu
ubuntu-2

banner
scalable
win
windows

https://www.flaticon.com/free-icon/dragon_1016736?term=dragon&page=1&position=12

https://www.flaticon.com/authors/basic-miscellany/flat
https://www.flaticon.com/packs/design-26
https://www.flaticon.com/packs/responsive-design-34
https://www.flaticon.com/packs/interior-design-23
https://www.flaticon.com/packs/nature-50
https://www.flaticon.com/packs/printing-4

<?xml version="1.0" encoding="iso-8859-1"?>
<!-- Generator: Adobe Illustrator 19.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0)  -->
<svg version="1.1" id="Capa_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
	 viewBox="0 0 512 512" style="enable-background:new 0 0 512 512;" xml:space="preserve">
<g>
	<path style="fill:#BDC3C7;" d="M494.345,370.759H320l172.314-99.487c8.413-4.892,11.292-15.661,6.444-24.099l-52.966-91.719
		c-2.324-4.068-6.179-7.038-10.706-8.249c-4.526-1.21-9.349-0.561-13.394,1.804l-138.858,80.154L362.99,90.306
		c2.365-4.045,3.015-8.867,1.804-13.394c-1.21-4.526-4.18-8.381-8.248-10.706l-91.719-52.966
		c-8.438-4.849-19.208-1.969-24.099,6.444L141.241,192v37.517L0,370.759v123.586c0.029,9.739,7.916,17.627,17.655,17.655h476.69
		c9.739-0.029,17.627-7.916,17.655-17.655V388.414C511.972,378.675,504.084,370.787,494.345,370.759z"/>
	<polyline style="fill:#DF4D60;" points="256,407.658 256,476.69 185.379,476.69 185.379,448.441 	"/>
	<rect x="291.31" y="406.069" style="fill:#FF5364;" width="70.621" height="70.621"/>
	<rect x="397.241" y="406.069" style="fill:#FB7B76;" width="70.621" height="70.621"/>
	<path style="fill:#D1D4D1;" d="M141.241,473.953l0.441-0.265l43.697-25.247L256,407.658l64-36.899l172.314-99.487
		c8.413-4.892,11.292-15.661,6.444-24.099l-52.966-91.719c-2.325-4.068-6.179-7.038-10.706-8.248
		c-4.526-1.21-9.349-0.561-13.394,1.804l-138.858,80.154L141.241,473.953z"/>
	<polyline style="fill:#41767F;" points="197.032,377.821 197.032,377.909 207.007,395.211 249.379,370.759 268.182,359.901 
		237.815,307.288 237.815,307.2 	"/>
	
		<rect x="276.379" y="258.682" transform="matrix(-0.866 0.5 -0.5 -0.866 728.6154 392.7533)" style="fill:#67B9CC;" width="70.621" height="70.621"/>
	
		<rect x="368.146" y="205.719" transform="matrix(-0.866 0.5 -0.5 -0.866 873.3743 248.0395)" style="fill:#9FC9D3;" width="70.621" height="70.621"/>
	<path style="fill:#E6E7E8;" d="M141.241,192l99.487-172.314c4.892-8.413,15.661-11.292,24.099-6.444l91.719,52.966
		c4.068,2.325,7.038,6.179,8.248,10.706c1.21,4.526,0.561,9.349-1.804,13.394l-80.154,138.858L237.815,307.2v0.088l-36.723,63.47
		l-4.061,7.062v0.088l-55.349,95.779l-0.441,0.706V192z"/>
	<polyline style="fill:#B19046;" points="141.241,319.117 173.992,338.008 177.964,340.303 186.527,325.473 213.274,279.128 
		204.8,274.185 152.099,243.818 141.241,262.621 	"/>
	
		<rect x="182.699" y="164.979" transform="matrix(-0.5 0.866 -0.866 -0.5 500.4692 111.6318)" style="fill:#E4C05C;" width="70.621" height="70.621"/>
	
		<rect x="235.658" y="73.237" transform="matrix(-0.5 0.866 -0.866 -0.5 500.4575 -71.846)" style="fill:#F3D55B;" width="70.621" height="70.621"/>
	<path style="fill:#D1D4D1;" d="M0,339.862l141.241-141.241v295.724c-0.029,9.739-7.916,17.627-17.655,17.655H17.655
		C7.916,511.971,0.029,504.084,0,494.345V339.862z"/>
	<circle style="fill:#FFFFFF;" cx="70.621" cy="450.207" r="17.655"/>
	<path style="fill:#67B9CC;" d="M123.586,0H17.655C7.916,0.028,0.028,7.916,0,17.655v353.103l141.241-141.241V17.655
		C141.213,7.916,133.325,0.028,123.586,0z"/>
	<polygon style="fill:#41767F;" points="141.241,17.655 141.241,123.586 0,264.828 0,158.897 	"/>
</g>
<g>
</g>
<g>
</g>
<g>
</g>
<g>
</g>
<g>
</g>
<g>
</g>
<g>
</g>
<g>
</g>
<g>
</g>
<g>
</g>
<g>
</g>
<g>
</g>
<g>
</g>
<g>
</g>
<g>
</g>
</svg>
<svg width="1024" height="1024" viewBox="0 0 1024 1024" fill="none" xmlns="http://www.w3.org/2000/svg">
    <path
        d="M508.827 0.772461C224.654 0.772461 0.40625 305.969 0.40625 710.148L229.547 749.213C169.075 696.515 206.161 288.058 508.827 288.058C811.493 288.058 858.584 696.417 797.134 749.213L1023.37 710.148C1023.37 305.969 793.001 0.772461 508.827 0.772461Z"
        fill="#81DA56" />
    <path
        d="M1023.39 707.988C1023.39 845.616 861.716 835.104 753.987 874.753C646.259 914.402 544.677 1023.77 511.891 1023.77C476.573 1023.77 323.282 888.651 272.129 874.753C177.65 841.24 0.390625 845.616 0.390625 707.988C0.390625 426.078 229.397 822.803 511.891 822.803C794.384 822.803 1023.39 426.078 1023.39 707.988Z"
        fill="#81DA56" />
    <path
        d="M116.646 836.315C199.184 857.711 259.346 867.78 281.722 879.107C442.204 945.968 477.586 1021.56 509.669 1021.56C550.626 1021.56 578.994 843.184 578.994 843.184C465.003 803.607 384.094 670.917 194.953 615.54C194.953 615.54 56.6348 567.484 27.1417 598.443C-5.58102 675.828 -34.9724 794.619 116.646 836.315Z"
        fill="url(#paint0_linear)" />
    <path
        d="M732.759 881.38C573.081 963.17 560.416 1015.19 507.22 1022.74C507.22 1022.74 488.789 1020.59 402.516 951.423C362.868 919.636 291.022 883.112 291.022 883.112C497.05 914.559 584.058 679.569 824.424 615.573C824.424 615.573 892.438 799.59 732.759 881.38Z"
        fill="#81DA56" />
    <defs>
        <linearGradient id="paint0_linear" x1="297.596" y1="598.39" x2="420.618" y2="879.08"
            gradientUnits="userSpaceOnUse">
            <stop stop-color="#81DA56" />
            <stop offset="0.233393" stop-color="#77D34A" />
            <stop offset="0.433117" stop-color="#6BCD3C" />
            <stop offset="0.580887" stop-color="#65C139" />
            <stop offset="0.699298" stop-color="#60B338" />
            <stop offset="0.838132" stop-color="#529F2D" />
            <stop offset="0.928389" stop-color="#4B9726" />
            <stop offset="1" stop-color="#3C7E1B" />
            <stop offset="1" stop-color="#438E1F" />
        </linearGradient>
    </defs>
</svg>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment