Last active
July 20, 2021 19:51
-
-
Save MarioRinaldi/bd871231936e92ae2670825f8dc9ee5c to your computer and use it in GitHub Desktop.
WSL: settings windows terminal
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// This file was initially generated by Windows Terminal 1.2.2381.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": "{61c54bbd-c2c6-5271-96e7-009a87ff44bf}", | |
"initialCols" : 120, | |
"initialRows" : 30, | |
// 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": | |
{ | |
"closeOnExit": true, | |
"colorScheme": "One Half Dark", | |
"cursorColor": "#FFFFFF", | |
"cursorShape": "underscore", | |
"fontFace": "DejaVuSansMono Nerd Font", | |
// "fontFace": "DejaVu Sans Mono for Powerline", | |
// "fontFace": "Cascadia Code PL", | |
"fontSize": 10, | |
"historySize": 9001 | |
// Put settings here that you want to apply to all profiles. | |
}, | |
"list": | |
[ | |
{ | |
// Make changes here to the powershell.exe profile. | |
"guid": "{61c54bbd-c2c6-5271-96e7-009a87ff44bf}", | |
"name": "Windows PowerShell", | |
"commandline": "powershell.exe", | |
"hidden": false | |
}, | |
{ | |
// Make changes here to the cmd.exe profile. | |
"guid": "{0caa0dad-35be-5f56-a8ff-afceeeaa6101}", | |
"name": "Prompt de comando", | |
"commandline": "cmd.exe", | |
"hidden": true | |
}, | |
{ | |
"guid": "{cb306ad0-3dd2-5e56-915c-d93942169a53}", | |
"hidden": false, | |
"name": "Ubuntu-20.04-flight-map", | |
"tabTitle": "Ubuntu-20.04-flight-map", | |
"suppressApplicationTitle": true, | |
"commandline": "wsl.exe -u mario -d Ubuntu-20.04-flight-map", | |
"startingDirectory": "//wsl$/Ubuntu-20.04-flight-map/home/mario", | |
"source": "Windows.Terminal.Wsl" | |
// "icon": "ms-appdata:///roaming/ubuntu-32.png" | |
}, | |
{ | |
"guid": "{07b52e3e-de2c-5db4-bd2d-ba144ed6c273}", | |
"hidden": false, | |
"name": "Ubuntu-20.04", | |
"tabTitle": "Ubuntu-20.04", | |
"suppressApplicationTitle": true, | |
"commandline": "wsl.exe -u mario -d Ubuntu-20.04", | |
"startingDirectory": "//wsl$/Ubuntu-20.04/home/mario", | |
"source": "Windows.Terminal.Wsl" | |
// "icon": "ms-appdata:///roaming/ubuntu-32.png" | |
}, | |
{ | |
"guid": "{b453ae62-4e3d-5e58-b989-0a998ec441b8}", | |
"hidden": true, | |
"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": [ | |
{ | |
"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": "#282C34", | |
"black": "#282C34", | |
"blue": "#61AFEF", | |
"brightBlack": "#5A6374", | |
"brightBlue": "#61AFEF", | |
"brightCyan": "#56B6C2", | |
"brightGreen": "#98C379", | |
"brightPurple": "#C678DD", | |
"brightRed": "#E06C75", | |
"brightWhite": "#DCDFE4", | |
"brightYellow": "#E5C07B", | |
"cyan": "#56B6C2", | |
"foreground": "#DCDFE4", | |
"green": "#98C379", | |
"name": "One Half Dark", | |
"purple": "#C678DD", | |
"red": "#E06C75", | |
"white": "#DCDFE4", | |
"yellow": "#E5C07B" | |
}, | |
{ | |
"background": "#FAFAFA", | |
"black": "#383A42", | |
"blue": "#0184BC", | |
"brightBlack": "#4F525D", | |
"brightBlue": "#61AFEF", | |
"brightCyan": "#56B5C1", | |
"brightGreen": "#98C379", | |
"brightPurple": "#C577DD", | |
"brightRed": "#DF6C75", | |
"brightWhite": "#FFFFFF", | |
"brightYellow": "#E4C07A", | |
"cyan": "#0997B3", | |
"foreground": "#383A42", | |
"green": "#50A14F", | |
"name": "One Half Light", | |
"purple": "#A626A4", | |
"red": "#E45649", | |
"white": "#FAFAFA", | |
"yellow": "#C18301" | |
}, | |
{ | |
"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" | |
} | |
], | |
// 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" }, | |
// command palette | |
{ "command": "commandPalette", "keys": "ctrl+shift+p" }, | |
// 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" }, | |
{ "command": "commandPalette", "keys": "ctrl+shift+p" }, | |
{ "command": "newTab", "keys": "ctrl+t" }, | |
{ "command": "closeTab", "keys": "ctrl+w" }, | |
{ "command": { "action": "switchToTab", "index": 0 }, "keys": "ctrl+1" }, | |
{ "command": { "action": "switchToTab", "index": 1 }, "keys": "ctrl+2" }, | |
{ "command": { "action": "switchToTab", "index": 2 }, "keys": "ctrl+3" }, | |
{ "command": { "action": "switchToTab", "index": 3 }, "keys": "ctrl+4" }, | |
{ "command": { "action": "switchToTab", "index": 4 }, "keys": "ctrl+5" }, | |
{ "command": { "action": "switchToTab", "index": 5 }, "keys": "ctrl+6" }, | |
{ "command": { "action": "switchToTab", "index": 6 }, "keys": "ctrl+7" }, | |
{ "command": { "action": "switchToTab", "index": 7 }, "keys": "ctrl+8" }, | |
{ "command": { "action": "switchToTab", "index": 8 }, "keys": "ctrl+9" } | |
] | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1) instalar WSL1 e alterar para WSL2 (https://docs.microsoft.com/pt-br/windows/wsl/) | |
2) instalar MS terminal (https://docs.microsoft.com/pt-br/windows/terminal/) | |
2.1) Seguir o seguinte powerUp do MS terminal+WSL (https://twasa.ml/post/wsl/) | |
2.1.1) instalar ZSH no WSL | |
2.1.2) instalar o "oh my ZSH" (https://ohmyz.sh/) | |
2.2) Ajustar o settings.json do MS terminal (https://gist.github.com/MarioRinaldi/bd871231936e92ae2670825f8dc9ee5c) | |
3) configurar o VSCODE para funcionar com o WSL (https://code.visualstudio.com/docs/remote/wsl-tutorial) | |
4) WSL+GIT (https://github.com/andy-5/wslgit/releases) | |
5) configurar fontes no vscode | |
5.1) instalar o "Nerd Fonts" (https://github.com/ryanoasis/nerd-fonts) | |
5.2) ajustar as fontes no MS terminal (arquivo de config) | |
6) instalar o theme powerlevel10k do ZSH (https://github.com/romkatv/powerlevel10k) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment