I use Windows Subsystem for Linux primarily and the bash environment coming with it for development work. Recently I've started using Windows Terminal which allows accessing the WSL as well. Below is my configration for it.
// This file was initially generated by Windows Terminal 0.11.1251.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": "{<GUID-1>}",
// 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,
// 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": "{<GUID-1>}",
"hidden": false,
"name": "Ubuntu",
"source": "Windows.Terminal.Wsl",
"commandline": "wsl.exe ~", // navigate home
"cursorShape": "filledBox",
"colorScheme" : "Dracula PRO",
"useAcrylic": true,
"acrylicOpacity": 0.8
},
{
// Make changes here to the powershell.exe profile.
"guid": "{<GUID-2>}",
"name": "Windows PowerShell",
"commandline": "powershell.exe",
"hidden": false
},
{
// Make changes here to the cmd.exe profile.
"guid": "{<GUID-3>}",
"name": "Command Prompt",
"commandline": "cmd.exe",
"hidden": false
},
{
"guid": "{<GUID-4>}",
"hidden": false,
"name": "Azure Cloud Shell",
"source": "Windows.Terminal.Azure"
}
]
},
// Add custom color schemes to this array.
// To learn more about color schemes, visit https://aka.ms/terminal-color-schemes
"schemes": [
{
"name" : "Dracula",
"background" : "#272935",
"black" : "#21222C",
"blue" : "#BD93F9",
"cyan" : "#8BE9FD",
"foreground" : "#F8F8F2",
"green" : "#50FA7B",
"purple" : "#FF79C6",
"red" : "#FF5555",
"white" : "#F8F8F2",
"yellow" : "#FFB86C",
"brightBlack" : "#6272A4",
"brightBlue" : "#D6ACFF",
"brightCyan" : "#A4FFFF",
"brightGreen" : "#69FF94",
"brightPurple" : "#FF92DF",
"brightRed" : "#FF6E6E",
"brightWhite" : "#F8F8F2",
"brightYellow" : "#FFFFA5"
},
{
"name" : "Dracula PRO",
"background" : "#22212C",
"black" : "#22212C",
"blue" : "#9580FF",
"brightBlack" : "#504C67",
"brightBlue" : "#AA99FF",
"brightCyan" : "#99FFEE",
"brightGreen" : "#A2FF99",
"brightPurple" : "#FF99CC",
"brightRed" : "#FFAA99",
"brightWhite" : "#FFFFFF",
"brightYellow" : "#FFFF99",
"cyan" : "#80FFEA",
"foreground" : "#F8F8F2",
"green" : "#8AFF80",
"purple" : "#FF80BF",
"red" : "#FF9580",
"white" : "#F8F8F2",
"yellow" : "#FFFF80"
}
],
// 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" },
// Manage panes
// To learn more about panes, visit https://aka.ms/terminal-panes
{ "command": { "action": "splitPane", "split": "vertical", "splitMode": "duplicate" }, "keys": "alt+shift+|" },
{ "command": { "action": "splitPane", "split": "horizontal", "splitMode": "duplicate" }, "keys": "alt+shift+-" },
{ "command": "closePane" , "keys": "alt+shift+w" },
{ "command" : {"action": "resizePane", "direction": "up"}, "keys" : "shift+alt+up"},
{ "command" : {"action": "resizePane", "direction": "down"}, "keys" : "shift+alt+down"},
{ "command" : {"action": "resizePane", "direction": "left"}, "keys" : "shift+alt+left"},
{ "command" : {"action": "resizePane", "direction": "right"}, "keys" : "shift+alt+right"}
]
}